Ruby + Rails + Windows + Installation
Some of you out there may find installing ruby and rails are easy. But not some of us like me.Currently I installed ruby on my TOSHIBA laptop running on Windows XP, and to access the internet I have to use proxy.
Thanks to Michael Wales http://www.michaelwales.com/ruby-on-rails/installing-ruby-on-rails-on-windows-vista for providing very good step by step tutorial. My part here is just to explain more
For this setup , i’m using
- ruby186-27_rc2.exe - Ruby installer version 1.8.6-27
- ruby-1.8.7-i386-mswin32.zip – latest update for ruby. I’ve read http://rubyonrails.org/download , and they recommend to use version 1.8.7. Therefore i will upgrade it from 1.8.6 to 1.8.7
Installation part
- i downloaded the installer ruby186-27_rc2.exe http://rubyforge.org/frs/download.php/47082/ruby186-27_rc2.exe
- Then i download the updates package from ftp://ftp.ruby-lang.org/pub/ruby/binaries/mswin32/ruby-1.8.7-i386-mswin32.zip
- Double click ruby186-27_rc2.exe and it will proceed to installation, just press next, and it may TOOK sometimes. Then finish installation, by clicking Close button. Your ruby will be installed by default at c:\Ruby
- After this you will use all commands from c:\Ruby\bin and therefore you need to put Ruby in your PATH environment. By default the installer will put it for you.

- Now, to confirm that Ruby is installed and your environment variable is setup correctly, open the command line and type ruby –version. It should tell you that you are running version 1.8.6.

- Now extract ruby-1.8.7-i386-mswin32.zip anywhere. Go to the folder, as for example this is mine.

- Copy all the content above and paste it in c:\Ruby (your default ruby installation folder), when it says confirm folder replace, just click yes to all.
- Again to check your version is updated, go to command prompt and

- Just to be sure, we would like to have the latest version from gem repository. issue command gem update –system We are going to get it from the internet.

- An error occured due to can’t connect to the server. I’m using internet proxy to connect to the internet . Therefore i have to issue set proxy in the command prompt by issuing set HTTP_proxy=http://<proxy address>:<port number> . To make sure the command prompt can access the internet, issue command proxycfg -u. Please refer below

- Issue back the gem update –system , and here is the results : C:\>gem update –system
Updating RubyGems
Updating rubygems-update
Successfully installed rubygems-update-1.3.4
:0:Warning: Gem::SourceIndex#search support for String patterns is deprecated
Updating RubyGems to 1.3.4
Installing RubyGems 1.3.4
Installing RubyGems
Installing gem executable
Removing old source_cache files
Removing old RubyGems RDoc and ri
Installing rubygems-1.3.4 ri into C:/Ruby/lib/ruby/gems/1.8/doc/rubygems-1.3.4/r
i
Installing rubygems-1.3.4 rdoc into C:/Ruby/lib/ruby/gems/1.8/doc/rubygems-1.3.4
/rdoc——————————————————————————
Oh-no! Unable to find release notes!
——————————————————————————
RubyGems installed the following executables:
C:/Ruby/bin/gem‘” update –system’ is not recognized as an internal or external command,
operable program or batch file. - And now we install rails . Run C:\>gem install rails
- C:\>gem install rails
Successfully installed rake-0.8.7
Successfully installed activesupport-2.3.2
Successfully installed activerecord-2.3.2
Successfully installed actionpack-2.3.2
Successfully installed actionmailer-2.3.2
Successfully installed activeresource-2.3.2
Successfully installed rails-2.3.2
7 gems installed
Installing ri documentation for rake-0.8.7…
Installing ri documentation for activesupport-2.3.2…
Installing ri documentation for activerecord-2.3.2…
Installing ri documentation for actionpack-2.3.2…
Installing ri documentation for actionmailer-2.3.2…
Installing ri documentation for activeresource-2.3.2…
Installing ri documentation for rails-2.3.2…
Installing RDoc documentation for rake-0.8.7…
Installing RDoc documentation for activesupport-2.3.2…
Installing RDoc documentation for activerecord-2.3.2…
Installing RDoc documentation for actionpack-2.3.2…
Installing RDoc documentation for actionmailer-2.3.2…
Installing RDoc documentation for activeresource-2.3.2…
Installing RDoc documentation for rails-2.3.2… - And you are done

thanks
lot of thanz