HOW TO: Install Ruby 1.8.7 on Windows

Submitted by teknikqa on Tue, 01/13/2009 - 10:43
  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

Comments

Aaron's picture

Submitted by Aaron (not verified) on Sun, 09/27/2009 - 14:12

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 :)

about2flip's picture

Submitted by about2flip (not verified) on Sun, 11/01/2009 - 01:09

I followed this word for word. I was trying to upgrade to 1.8.7 from 1.8.6, and it still says 1.8.6 when i do ruby -v.

Any suggestions

Add new comment