Ruby on Rails installation guild.

December 17, 2005

The Reason

At the first sight of ruby on rails was very interesting of course, web blog in 15 minutes? cool!
Install this thing – with respect is every difficult for windows users that be.
Here is the steps which I use and I will explain more of the difficulty and the work arounds

Check this [steps]:

  1. download Ruby 1.8.2 … for windows
  2. install ruby
  3. ruby gems 0.8.11 –package manager (included in ruby for windows)
  4. in windows: run > cmd >gem install rails:

On the 4th step at the command prompt is where it gets complicated if there is this:

>gem install rails
Updating Gem source index for:

This is suppose to take 21 seconds, but it hangs for me and for some users within windows but its not the package managers fault but some external process or program. Turning the firewall off won’t work neither.. yes I know thats the most logical choice “ok sooo then turn the firewall off”, I guess it won’t work.

Work around
Instead of doing 8 hours of intense work to get it working or what ever reason, just take look here. 1st thing is to download the rails gem version 1.0, goto the command prompt; start > run > cmd. When you install rails locally:

>gem install rails --local

It won’t be succesfull because of the dependencies:

>gem dependency rails

Would output:

Gem rails-1.0.0
rake (>= 0.6.2)
activesupport (= 1.2.5)
activerecord (= 1.13.2)
actionpack (= 1.11.2)
actionmailer (= 1.1.5)
actionwebservice (= 1.0.0)

As you see we need rails dependencies (click to download each gem package) rake 0.6.2, activesupport 1.2.5, activerecord 1.13.2, actionpack 1.11.2, actionmailer 1.1.5, actionwebservice 1.0.0 and also don’t forget to download rails 1.0.0 -put them in the same directory.


All that needs to be done is on the command line is to install each package manually; type:

>gem install rake
>gem install activesupprt
>gem install activerecord
>gem install actionpack
>gem install actionmailer
>gem install actionwebservice

And when all packages is successfully installed type:

>gem install rails

Now it would say

Attempting local installation of 'rails'
Successfully installed rails, version 1.0.0

Now you get ruby on rails installed! This is the only way I got it to work, there is like >install rails --include-dependencies --local which will install rails and all its dependencies from your hardrive but this don’t seem to work with rails, or some how install the yaml index manually for rubygems

To test the installation type in this


Rails will output a help screen. Now your ready to roll

Web server

>rails test

The command above will create an application envioronment with directories and scripts

To start webrick HTTP server type this:

>cd test
>ruby script/server

=> Booting WEBrick...
=> Rails application started on
=> Ctrl-C to shutdown server; call with --help for options
[2005-12-16 17:37:02] INFO WEBrick 1.3.1
[2005-12-16 17:37:02] INFO ruby 1.8.2 (2004-12-25) [i386-mswin32]
[2005-12-16 17:37:02] INFO WEBrick::HTTPServer#start: pid=1778 port=3000

When you see the above screen go on and check to see if the server is started, on the browser it should say “Congratulations, you put Ruby on Rails!” with big bold letters, congrats to you!, you deserve a pat in the back, if not don’t worry, as long as the WEBrick server started successfully ruby on rails have installed properly and try ruby on rails for apache webserver instead of WEBrick server.

Why Ruby on Rails:

Every variable is an object in ruby, less code will be involved when creating web applications with AJAX, XML, database connectivity, user request, and overall functionality to speed up web development.

Why not

Remember ruby on rails won’t make you a better programmer, only in practice. When working with technology such as PHP for serverside you have more control over the display of html code and creation of javascript functions say for example functions that deal with AJAX, rails has a library for client side architecture too, which you don’t need to create but when you are just starting out and want to learn AJAX more you want to create and practice techniques your self, with this kind of expertise with client and serverside classes you can maybe help with the development or create your own framework using any server side scripting language.

Learning Ruby

Goto the directory where Ruby is installed and click on Programming Ruby help file, which is a good guild to read.

Related (outbound links)


One Response to “Ruby on Rails installation guild.”

  1. Excellent post. I was checking constantly
    this blog and I am impressed! Extremely
    helpful information specially the final phase 🙂 I care for such info a lot.

    I was seeking this certain information for a very lengthy time.

    Thanks and best of luck.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: