Ruby 1.8.5-win32 upgrade notes

It’s another of those “for my own reference” posts but here’s how I upgraded 2 win32 systems (XP Pro and Win server 2003) from Ruby 1.8.4 to 1.8.5:

assuming you are..

  • using the Ruby one-click installer
  • create new install at c:/ruby185
  • root = c:/ruby185/lib/ruby
  • old_root = c:/ruby/lib/ruby

to-do

  1. let the one-click installer do its thing.
  2. copy ~root/gems/1.8/* to ~old_root/gems/1.8/*. this will take a few minutes if you have more than a few gems.
  3. delete ~root/gems/1.8/source_cache.
  4. change the environment var PATH to c:\ruby185\bin (remove old).
  5. reinstall RubyGems v.91. maybe you don’t have to, but .92 and .93 cause the “not an absolute path” error on 2 systems i’ve upgraded.
  6. make c:/ruby185/bin look like c:/ruby/bin regarding gems, for instance, copy redcloth and redcloth.cmd. NOTE: open each copied file with ext .cmd and change the path to ruby185/bin. open redcloth to get an idea of what these are. this step is normally handled by gem update but that’ll be painful if you have more than a few gems to migrate.
  7. for mssql with Rails users, copy ~old_root/site_ruby/1.8/DBD/ADO to the same place in ~root.
  8. make the necessary changes in RadRails under Window | Preferences for Ruby and Rails nodes.

Posted by Luke on Friday, June 01, 2007

Comments (1)


Tom on Friday, June 01, 2007

thanks!