Sunday, November 4, 2007

Installing Ruby on Rails

Hi friends,

This article explains the step by step procedure for installing the ruby on rails application in the Linux machines. The installation guidelines are found in the ruby on rail's home site. Please follow the below steps for deploying this developer suite.

Step1: Installing ruby-1.8.6

Download from the ruby on rail's home site or use
# wget http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6.tar.gz
# tar -xzf ruby-1.8.6.tar.gz
# cd ruby-1.8.6
# ./configure
# make
# make install
# ruby -v or # ruby --version (to check the installed version)

Note: make sure the availability of any c compiler, if not please use "# yum install gcc" to install the compiler.

Step2: Installing rubygems

Download from the ruby on rail's home site or use
# wget http://rubyforge.org/frs/download.php/5207/rubygems-0.8.11.tgz
# tar -zxvf rubygems-0.8.11.tgz
# cd rubygems-0.8.11
# ruby setup.rb

Step3: Install rails using gem

# gem install rails

Step4: test

Please check the installation logs for successfully completion. Can use the following command also
# rails test
# cd rails
# ruby script/server

Thanks

Logu
logu_microsoft@hotmail.com
91-98414-99143

No comments: