Installation of ROR and postgres in Ubuntu 14.04 (Reference from various website only used for personal study purpose)
Step 1: installing Ruby on Rails with
Step 1: installing Ruby on Rails with
rvm is to run the following commands as a regular usergpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash -s stable --rails
Step 2:source thervmscripts using source ~/.rvm/scripts/rvm
Step 3:specify ruby version on your requirement
rvm install ruby_versionTo verify list of ruby available in RVM usingrvm listTo Switch to specific ruby version uservm use ruby-*.*.*Step 4: To install postgres package use folowing commandsudo apt-get install postgresql postgresql-contribThe installation procedure created a user account calledpostgresthat is associated with the default Postgres role. In order to use Postgres, we'll need to log into that account. You can do that by typing:sudo -i -u postgresto exit from postgres using \q commandTo create new role in postgrescreateuser --interactiveenter user as postgres and give super admin privilage .Now ROR and Postgres database is installed on your ubuntu 14.04 machine