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 thervm
scripts using source ~/.rvm/scripts/rvm
Step 3:specify ruby version on your requirement
rvm install ruby_version
To verify list of ruby available in RVM using
rvm list
To Switch to specific ruby version use
rvm use ruby-*.*.*
Step 4: To install postgres package use folowing command
sudo apt-get install postgresql postgresql-contrib
The installation procedure created a user account called
postgres
that 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 postgres
to exit from postgres using \q command
To create new role in postgres
createuser --interactive
enter user as postgres and give super admin privilage .
Now ROR and Postgres database is installed on your ubuntu 14.04 machine
No comments:
Post a Comment