Monday, 22 July 2013

Few Commands to Install Ruby and Rails on your Ubuntu Machine and get ready to work within 15 minutes

How To Install Ruby

Write the following commands in the terminal one by one and follow the procedure.

  1. sudo apt-get install curl
  2. source /etc/profile
  3. source ~/.rvm/scripts/rvm
  4. type rvm | head -n 1
  5. curl -L get.rvm.io | bash -s stable
  6. source ~/.rvm/scripts/rvm
  7. rvm install 1.9.3
  8. rvm use 1.9.3

After completing step 9 restart the terminal



How To Run Ruby :

Type “irb” in the terminal



How To Install Rails :

Type the following commands in the terminal

  1. sudo -s chmod -R 777 /usr/lib/ruby/gems/1.9.1
  2. sudo -s chmod -R 777 /usr/bin
  3. gem install rails

    And Yes you are ready to field now.

    Don't forget to comment if you found this blog helpful. I will keep updating the basic short-cuts on technology we use in our day to day life.. Keep in touch and stay happy.
Post a Comment