# Correctly upgrading ruby on MS Windows

**URL:** <https://www.ruby-forum.com/t/correctly-upgrading-ruby-on-ms-windows/173148>\
**Category:** Ruby\
**Created:** [August 4, 2009, 3:05am UTC](https://www.ruby-forum.com/t/correctly-upgrading-ruby-on-ms-windows/173148 "2009-08-04T03:05:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![calvin98115](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/7ea924/32.png) [@calvin98115](https://www.ruby-forum.com/u/calvin98115)\
**Post date:** [August 4, 2009, 3:05am UTC](https://www.ruby-forum.com/t/correctly-upgrading-ruby-on-ms-windows/173148/1 "2009-08-04T03:05:58Z")

</div>

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 method`uid’ 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:in`set\_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:in`installed\_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:in`source\_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:in`gem’  
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?

---

<div class="post-metadata">

**Author:** ![calvin98115](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/7ea924/32.png) [@calvin98115](https://www.ruby-forum.com/u/calvin98115)\
**Post date:** [August 4, 2009, 4:20am UTC](https://www.ruby-forum.com/t/correctly-upgrading-ruby-on-ms-windows/173148/2 "2009-08-04T04:20:51Z")

</div>

On Aug 3, 10:06 pm, Calvin N. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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](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](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/](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/](http://wiki.github.com/oneclick/rubyinstaller/)

HTH,

---

<div class="post-metadata">

**Author:** ![calvin98115](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/7ea924/32.png) [@calvin98115](https://www.ruby-forum.com/u/calvin98115)\
**Post date:** [August 4, 2009, 7:08am UTC](https://www.ruby-forum.com/t/correctly-upgrading-ruby-on-ms-windows/173148/3 "2009-08-04T07:08:52Z")

</div>

Chao Ban

Nothing with ruby , just come to greet you in vietnamese 🙂
