Ubuntu rvm installation for ruby an rails

Thursday, October 24, 2013


Install rvm to uUbuntu system and install ruby as well as rails.

Step 1:
Before installation we need to update the Ubuntu system

$ sudo apt-get update

Step 2:
After updated the system we need to install curl for fetching the rvm stable source from the rvm side using curl

$ sudo apt-get install curl

Step 3:
Install stable rvm, it will take few minute for installation.  

$ \curl -L | bash -s stable

Step 4:
After rvm install we need to add the execution of rvm to source

$ source ~/.rvm/scripts/rvm

Step 5:
Check rvm is installed correctly

$ rvm requirements

Step 7:
Install Latest ruby in that rvm and make as default

$ rvm install ruby
$ rvm use ruby --default

Step 8:
Install default required ruby gem for current ruby version

$ rvm rubygems current

Step 9:
Now install rails it will install latest version of rails

$ gem install rails

Step 10:
All installation completed create your rails project and start your application.

$ rails new sample
$ rails s

No comments:

Post a Comment