[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Reinstalling Gems after updating Ruby

Alex DeCaria

12/13/2007 10:13:00 PM

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?
--
Posted via http://www.ruby-....

2 Answers

Luis Lavena

12/14/2007 5:11:00 AM

0

On Dec 13, 7:12 pm, Alex DeCaria <alex.deca...@millersville.edu>
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.

Bernard Kenik

12/15/2007 10:12:00 PM

0

On Dec 14, 12:11 am, Luis Lavena <luislav...@gmail.com> wrote:
> On Dec 13, 7:12 pm, Alex DeCaria <alex.deca...@millersville.edu>
> 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.


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