# Reinstalling Gems after updating Ruby

**URL:** <https://www.ruby-forum.com/t/reinstalling-gems-after-updating-ruby/123093>\
**Category:** Ruby\
**Created:** [December 13, 2007, 11:12pm UTC](https://www.ruby-forum.com/t/reinstalling-gems-after-updating-ruby/123093 "2007-12-13T23:12:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/96bed5/32.png) [@alexd](https://www.ruby-forum.com/u/alexd)\
**Post date:** [December 13, 2007, 11:12pm UTC](https://www.ruby-forum.com/t/reinstalling-gems-after-updating-ruby/123093/1 "2007-12-13T23:12:53Z")

</div>

If I update to a newer version of Ruby using the 1-click installer, do I  
have to reinstall all of the gems I currently have installed (such as  
RMagick)? Or is there a way of updating Ruby without having to update  
every thing else that’s Ruby related?

---

<div class="post-metadata">

**Author:** ![alexd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/96bed5/32.png) [@alexd](https://www.ruby-forum.com/u/alexd)\
**Post date:** [December 14, 2007, 6:15am UTC](https://www.ruby-forum.com/t/reinstalling-gems-after-updating-ruby/123093/2 "2007-12-14T06:15:48Z")

</div>

On Dec 13, 7:12 pm, Alex DeCaria [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> If I update to a newer version of Ruby using the 1-click installer, do I  
> have to reinstall all of the gems I currently have installed (such as  
> RMagick)? Or is there a way of updating Ruby without having to update  
> every thing else that’s Ruby related?

I’ll recomend first you “backup” your current ruby directory prior  
attempt to install the updated installer 🙂

The problem is that some version of files that are no longer part of  
1.8.6 will remain there, and maybe that can conflict on how your ruby  
environment work.

Future releases of One-Click installer are planned to handle this more  
properly.

---

<div class="post-metadata">

**Author:** ![alexd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/96bed5/32.png) [@alexd](https://www.ruby-forum.com/u/alexd)\
**Post date:** [December 15, 2007, 11:16pm UTC](https://www.ruby-forum.com/t/reinstalling-gems-after-updating-ruby/123093/3 "2007-12-15T23:16:04Z")

</div>

On Dec 14, 12:11 am, Luis L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> The problem is that some version of files that are no longer part of  
> 1.8.6 will remain there, and maybe that can conflict on how your ruby  
> environment work.
> 
> Future releases of One-Click installer are planned to handle this more  
> properly.

The way I handle this problem:

I make a make a copy of folder ruby\lib\ruby\gems\1.8

Uninstall Ruby

Install new version of Ruby

Recopy the folder 1.8 into ruby\lib\ruby\gems

Note this is not a complete solution, you still have to reload gems  
that places files outside of the 1.8 folder structure … for  
example in ruby\bin.

Hopes this helps
