HOWTO: Install Ruby 1.8.7 on Windows

I’ve moved to a new home. See this post at “An Individual Approach” – http://bit.ly/3KvnLj

  1. Download the windows binaries for Ruby 1.8.7 here: http://www.ruby-lang.org/en/downloads/ extract that to wherever you would like, I use c:\ruby. Then put c:\ruby\bin in your PATH environment variable.
  2. Download the zlib package: http://www.zlib.net/zlib123-dll.zip and extract the zlib1.dll, rename it to zlib.dll and move it into your Windows\System32.
  3. Download the iconv package: http://sourceforge.net/project/showfiles.php?group_id=25167&package_id=51458. Find and extract the iconv.dll into your Windows\System32.
  4. Download the rubygems package and follow the instructions, basically extracting the package and running
    ruby setup.rb
  5. Verify that everything works properly by trying a
    gem install rails
  6. once that installs then do:
    rails test_project

Note: If zlib.dll and iconv.dll don’t work, copy them into c:\ruby\bin

Source: http://bit.ly/DICb
About these ads

6 Responses to HOWTO: Install Ruby 1.8.7 on Windows

  1. If you want use capistrano don’t forget to install openssl for windows.

    Thanks for the step-by-step guide

  2. Pingback: The Rake’s Progress - Mike Nichols - Son Of Nun Technology - Devlicio.us

  3. Rafa G.: I found that I needed SSL just to run gem install. I used http://www.slproweb.com/download/Win32OpenSSL_Light-0_9_8k.exe from http://www.slproweb.com/products/Win32OpenSSL.html. That did the trick.

  4. Oh yes, and gdbm.dll is also required if you are running the test suite. Still searching for that…

  5. That worked! I had some issues with ruby, as it was trying to find ruby gems from the one click installer. I used unset in cygwin to delete rubyopt. Put the dlls in the bin folder of the ruby directory, installed openssl and im good to go :)

  6. Pingback: Zlib.dll | TagHall

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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