Correctly upgrading ruby on MS Windows

Hi, I am looking for some guidance on the correct and/or most
streamlined way to upgrade Ruby. Presently I am on Ruby version 1.8.6
patch level 111. I am looking to upgrade to version 1.8.6 patch level
287. When I tried downloading the ruby-1.8.6-p287-i386-mswin32.zip file
I unzipped it and was optmistically hoping that i could take all of its
files and overlay my current installation. When I checked the rails
version with (rails -v), I get the following error:
D:\Mercury\GreenLight\server>rails -v
c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:713:in set_paths': undefined methoduid’ for nil:NilClass (NoMethodError)
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:711:in each' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:711:inset_paths’
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:518:in path' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:66:ininstalled_spec_directories’
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:56:in
from_installed_gems' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:726:insource_index’
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:138:in
activate' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:49:ingem’
from c:/ruby/bin/rails:18

I also saw that ruby/script console and ruby script/server -e commands
also failed. I’ve tried renaming the current c:\ruby directory and just
creating ane c:\ruby directory with just the patch level 287’s contents
and that fails because some of the binaries are missing. Which gems
and/or plugin require reinstallation after a correct upgrade? Please
advise?

On Aug 3, 10:06 pm, Calvin N. [email protected] wrote:

Hi, I am looking for some guidance on the correct and/or most
streamlined way to upgrade Ruby. Presently I am on Ruby version 1.8.6
patch level 111. I am looking to upgrade to version 1.8.6 patch level
287. When I tried downloading the ruby-1.8.6-p287-i386-mswin32.zip file
I unzipped it and was optmistically hoping that i could take all of its
files and overlay my current installation. When I checked the rails
version with (rails -v), I get the following error:
[…]

Please read the note added to Ruby-lang website:

http://www.ruby-lang.org/en/downloads

"Please note that some of the above binaries will require manual
download and installation of additional components detailed on this
page. Please ensure you’ve followed/performed these steps prior
reporting a bug.

The O.-Click Installer does not require these additional tasks."

The page it mention is this:

http://www.garbagecollect.jp/ruby/mswin32/en/documents/install.html

You can also, of course, play out with upcoming One-Click Installer:

http://blog.mmediasys.com/2009/07/06/getting-started-with-rails-and-sqlite3/

And read more about it here:

http://wiki.github.com/oneclick/rubyinstaller/

HTH,

Chao Ban

Nothing with ruby , just come to greet you in vietnamese :slight_smile: