Ruby on Rails Installation

Steps to Install Ruby on Rails on Ubuntu with RVM

1 Install curl by sudo apt-get install curl

2 \curl -L https://get.rvm.io | bash -s stable

3 After the curl installation, we need to reload so exit out of the current shell&start a new      one.

4 source ~/.rvm/scripts/rvm

5 Inorder for working with RVM correctly check for it’s corresponding dependencies

6 Check for RVM dependencies  by rvm requirements.

Additional Dependencies:
# For Ruby / Ruby HEAD (MRI, Rubinius, & REE), install the following:
  ruby: /usr/bin/apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config

Just follow the instructions
sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config



 

Next is installing ruby

 

 rvm install 1.9.3

 

 

After this Ruby will be installed

to set the default ruby version on your system you need to issue the below command

rvm use 1.9.3 --default

Install Ruby gems

 rvm rubygems current

Next and final we gonna install rails

gem install rails