From: Peter Bailey Date: 2007-07-27T23:49:41+09:00 Subject: Re: Help with updating to 1.8.6 Gordon Thiesfeld wrote: >> Why can't it see it? I've noticed that, with this version >> of Ruby, using the Windows one-click installer, I have to manually put >> the Ruby path in for my server now. It's not automatic. > > This has happened to me before with an upgrade, I'm not sure why. It > may have also removed the RUBYOPT environment variable, which might > explain why you can't find your gem. Check to see if RUBYOPT is set > to -rubygems. The other option is to add require 'rubygems' to all of > your code. I think that's how it's done on other platforms. > >> Is there any gem >> or anything that can help with these updates, where, all existing gems >> are either maintained or automatically re-loaded, instead of absolutely >> everything being blown away?? > > I generally just install to a new location, like ruby185, ruby186. > Then I can just copy the gems directory over to the new location. Not > sure if this is the standard or best practice, but it works for me. Thanks a lot, Gordon. Yes, it works now, by me putting 'require rubygems' at the top of my script. I also set an environment variable by doing "set RUBYOPT = -rubygems." That alone didn't seem to do it; the "require" fixed it. -Peter -- Posted via http://www.ruby-forum.com/.