This tutorial is for installing the popular ROR to a Linux server. Ruby on Rails is useful in many ways and I think it is useful to write this tutorial regarding how to install it in case anyone needs too.
The installation of Ruby on rails is fairly basic but requires the installation of two main pieces of software. We need Ruby Gems and Rails both of which can be easily obtained.
Now login to SSH terminal window using a client such as Putty.
Step 1 - Installing Ruby Gems
You need to now as I mentioned before be logged into SSH via root. Make sure after you enter each command you wait before typing the next. Also remember to press enter after you enter each command.
Type -
wget http://rubyforge.org/frs/download.ph...ems-0.8.11.tgz
This will fetch the files required to install Ruby Gems
tar zxvf rubygems-0.8.11.tgz
This extracts the files you just downloaded
cd rubygems-0.8.11
This takes you too the new directory that was just extracted.
sudo ruby setup.rb
This runs the ruby set-up.
If all goes well, you should see a message that says "Successfully build Ruby Gems".
I advise that you now do the following, however it is not compulsory, it just cleans up the files you just downloaded.
cd ..
Then...
rm ruby* -drf
Step 2 - Installing Rails
Now that the installation of Ruby is complete it is very easy to install Rails!
All you have to do is type the following -
sudo gem install rails --include-dependencies
Make sure you wait for the Rails software to download and install this shouldn't take more than a couple of minutes.
Well Done you just installed Ruby on Rails!![]()
If you are REALLY cheesy and weird (like myself) play Kaiser Chiefs new song "Ruby" while you install![]()






Reply With Quote



