Correctly upgrading ruby on MS Windows

C

Calvin Nguyen

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?
 
L

Luis Lavena

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 One-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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,967
Messages
2,570,148
Members
46,694
Latest member
LetaCadwal

Latest Threads

Top