# Help with updating to 1.8.6

**URL:** <https://www.ruby-forum.com/t/help-with-updating-to-1-8-6/110563>\
**Category:** Ruby\
**Created:** [July 27, 2007, 3:17pm UTC](https://www.ruby-forum.com/t/help-with-updating-to-1-8-6/110563 "2007-07-27T15:17:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bodikp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e79b87/32.png) [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Post date:** [July 27, 2007, 3:17pm UTC](https://www.ruby-forum.com/t/help-with-updating-to-1-8-6/110563/1 "2007-07-27T15:17:06Z")

</div>

Hi,  
I need help. I’ve updated to 1.8.6, but, I’ve lost some stuff I had. I  
thought I’d copied all of my “object” files I’d created and then copied  
them back in, ut, I obviously forgot some of them. So, I’m dealing with  
that. But, this morning I’m getting an error in a script that it can’t  
find KirbyBase. That’s the first gem I re-install as soon as I ever  
update Ruby. 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. 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??

Thanks,  
Peter

---

<div class="post-metadata">

**Author:** ![bodikp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e79b87/32.png) [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Post date:** [July 27, 2007, 4:41pm UTC](https://www.ruby-forum.com/t/help-with-updating-to-1-8-6/110563/2 "2007-07-27T16:41:06Z")

</div>

> 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.

---

<div class="post-metadata">

**Author:** ![bodikp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e79b87/32.png) [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Post date:** [July 27, 2007, 4:49pm UTC](https://www.ruby-forum.com/t/help-with-updating-to-1-8-6/110563/3 "2007-07-27T16:49:31Z")

</div>

Gordon T. 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
