Installing Rails

In the previous post, we wrote about how you can install ruby from the source. In this post, we will be writing about you can install rails  so that you may get started with ruby on rails development.

Follow these instructions to build and install Ruby on Rails. You have to install Ruby and RubyGems before you continue this tutorial. This should work on most Linux platforms and on MAC OS X. I never tried it on Windows.

Ready to Install

We are ready to install Ruby on Rails if you have already installed RubyGems. Just type this command.

  
    gem install rails # use sudo if you need to
  

Installing Gems

You can also install optional gems which are really useful.

  
    gem install mongrel    # fast and reliable rails application server.
    gem install capistrano # deployment made easy
    gem install hpricot    # good HTML parser
    gem install json       # lots of handy JSON helpers
    # Rails and MySQL integration
    gem install mysql -- --with-mysql-dir=/path/to/mysql
  

We’re Done

Congratulations. You have successfully installed Ruby on Rails and optional Gems.





Leave a Reply