Thursday, March 08, 2007

Install Ruby on Rails on Windows - Step by Step

Updated install instructions, as on 15th June 2007:
Updated Install instructions (5.18 KB) can be downloaded here. These modified instructions may be used in lieu of instructions found in "Step_by_step_RoR_Install_For_Windows.txt" and the original instructions.

Original instructions below:
Download the ruby pack from the link here (29.69 MB)

Unzip the package in a directory of your choice.

The following files are part of the package:
rubyInstall <dir>
standaloneInstall <dir containing all dependent packages of Rails>

Now, install Ruby, by double-clicking on the "ruby185-24.exe" file.

Next, gems needs to be installed.

Create a directory C:\Ruby\Src\ as
shell> md C:\Ruby\Src
Extract the "" file in the "C:\Ruby\Src\" directory.
Now, the gems package is extracted in the directory "C:\Ruby\Src\rubygems-0.9.2"

Next, copy the directory standaloneInstall to "C:\Ruby\Src\"
[You will have a new directory C:\Ruby\Src\standaloneInstall]

Click on "Start", "Run"
Type "Cmd" in the text area and click on "OK"

The shell command prompt is displayed like "C:\Windows>" which is represented in this document as "shell>"

Here, enter the commands as below.

shell> cd C:\Ruby\Src\rubygems-0.9.2
shell> ruby setup.rb
[gems will be installed]

Next, Rails has to be installed.

Rails installation is dependent on the following modules:
1. Activesupport -
2. Actionpack -
3. Actionmailer -
4. Activerecord -
5. Actionwebservice -
6. Rake -
7. Rails -

Follow the commands below to install rails.

shell> cd C:\Ruby\Src\standaloneInstall

shell> gem install Activesupport
shell> gem install Actionpack
shell> gem install Actionmailer
shell> gem install Activerecord
shell> gem install Actionwebservice
shell> gem install Rake
shell> gem install Rails

Congratulations! You have now successfully installed Ruby and Rails.

Note: In this installation, MySQL was already installed.

See below for the commands and the response from the computer:
shell> gem install Activesupport
Successfully installed activesupport, version 1.4.1
Installing ri documentation for activesupport-1.4.1...
Installing RDoc documentation for activesupport-1.4.1...

shell> mkdir C:\ruby\src\standaloneInstall


shell> gem install Actionpack
Successfully installed actionpack, version 1.13.2
Installing ri documentation for actionpack-1.13.2...
Installing RDoc documentation for actionpack-1.13.2...

shell> gem install Actionmailer
Successfully installed actionmailer, version 1.3.2
Installing ri documentation for actionmailer-1.3.2...
Installing RDoc documentation for actionmailer-1.3.2...

shell> gem install Activerecord
Successfully installed activerecord, version 1.15.2
Installing ri documentation for activerecord-1.15.2...
Installing RDoc documentation for activerecord-1.15.2..

shell> gem install Actionwebservice
Successfully installed actionwebservice, version 1.2.2
Installing ri documentation for actionwebservice-1.2.2...
Installing RDoc documentation for actionwebservice-1.2.2...

shell> gem install Rake
Successfully installed rake, version 0.7.2
Installing ri documentation for rake-0.7.2...
Installing RDoc documentation for rake-0.7.2...

shell> gem install Rails
Successfully installed rails, version 1.2.2

To install Ruport [Ruby Report]

extract "" to "C:\Ruby\Src"
You will now have the package extracted to

Enter the commands below to install Ruby Reports.

shell> cd C:\Ruby\Src\ruport-0.8.11
shell> ruby setup.rb

The installer will respond with some information regarding the install and the shell prompt is seen
indicating that Ruby Reports was successfully installed.

Post a Comment

Why should I not take revenge?

This is what we do and have been doing since we have known man. Revenge seems to be a natural response to injustice that seems to target us... Registered & Protected DWYE-NHTO-NBNH-7FFM