PDA

View Full Version : Ruby On Rails (ROR) Installation Tutorial.



Mr.OSH
20-04-2007, 09:56 PM
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.php/5207/rubygems-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 :P

Luckyrare
20-04-2007, 09:57 PM
Nice tutorial ;)

Recursion
20-04-2007, 10:03 PM
whats Ruby on Rails?

Mr.OSH
20-04-2007, 10:11 PM
whats Ruby on Rails?

http://en.wikipedia.org/wiki/Ruby_on_Rails (http://en.wikipedia.org/wiki/Ruby_on_Rails) <- Read it. :)

Jazza
20-04-2007, 10:18 PM
Very nice

:Liam
20-04-2007, 10:18 PM
Nice Tut! :)

Recursion
20-04-2007, 10:20 PM
so is Ruby, Ruby on Rails basically? :S

Mr.OSH
20-04-2007, 10:26 PM
so is Ruby, Ruby on Rails basically? :S

Its Ruby but using Rails framework as you can install either Ruby or Rails separately as standalone applications if you like. :)

Recursion
20-04-2007, 10:27 PM
Ahh ok ;) Thanks +REP for teaching me something new XD

Mr.OSH
20-04-2007, 10:28 PM
Ahh ok ;) Thanks +REP for teaching me something new XD

No problem, its not really that complicated anyway. + rep for generally just being nice. :D

Recursion
20-04-2007, 10:30 PM
No problem, its not really that complicated anyway. + rep for generally just being nice. :D


Hehe Thanks ;D

Woo! 430 REP Point lol

Mr.OSH
20-04-2007, 10:53 PM
OK thanks for the comments so far, I just hope this tutorial can be of some use to people who need to install ROR for whatever various reason. + rep for all the positive comments I've received so far. :D

Want to hide these adverts? Register an account for free!