Ruby on Rails – Installation using RVM


Ruby Version Manager (RVM) is a command-line tool which allows you to easily install, manage, and work with multiple ruby environments from interpreters to sets of gems.

Steps for Installation
Open terminal and run following commands.

  • Step 1
    $ sudo apt-get install build-essential git-core curl
  • Step 2
    RVM Installation
    $ curl -L get.rvm.io | bash -s stable
  • Step 3
    $ echo ‘[[ -s "$HOME/.rvm/scripts/rvm" ]] && source “$HOME/.rvm/scripts/rvm”‘ >> ~/.bashrc
  • Step 4
    $ ~/.bashrc
  • Step 5
    $ . ~/.bashrc
  • Step 6
    Check requirements for Ruby
    $ rvm requirements
  • Step 7
    Install requirements of Ruby by RVM
    $ 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
  • Step 8
    Install Ruby with 1.9.3 version
    $ rvm install 1.9.3
  • Step 9
    Check Rubygems version. Its installed with Ruby.
    $ gem -v
    1.8.24
  • Step 9
    Install Rails latest version
    $ rvm gem install rails
  • Step 10
    Check version of Ruby, Rails and Rubygems
    $ ruby -v
    ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]
    $ gem -v
    1.8.24
    $ rails -v
    Rails 3.2.8

Installation is complete. Now try RoR Apps.
If you find any error between steps then share it as comments.
Thanks for using this post.

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s