[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: gem update and a warning



John Yani escreveu isso aí:
> Hi. I'm a little confused with a way used in debian to update gem
> package manager. I'm using ruby1.9.1 package which includes gem1.9.1.
> 
> Official site ( http://rubygems.org/pages/download ) says that to
> upgrade to the latest rubygems you run:
> 
> gem update --system
> 
> This doesn't work in debian. There is a warning:
> 
> gem update --system is disabled on Debian, because it will overwrite
> the content of the rubygems Debian package, and might break your
> Debian system in subtle ways. The Debian-supported way to update
> rubygems is through apt-get, using Debian official repositories.
> If you really know what you are doing, you can still update rubygems
> by setting the REALLY_GEM_UPDATE_SYSTEM environment variable, but
> please remember that this is completely unsupported by Debian.
> 
> Ok. I want rubygems version 1.8.x.
> 
> gem1.9.1 --version
> 1.3.7
> 
> Seems like debian includes old version of rubygems. Is there any way I
> can update it?
> The following lines don't produce any warnings:
> 
> sudo gem install rubygems-update
> sudo update_rubygems
> 
> I understand the need to remove rubygems using a package manager. But
> wouldn't it be better to use gem's  approach?
>
> I mean you could easily remove folders in 'gem env paths' and then
> /usr/local/lib/site_ruby/1.9.1 and then /usr/bin/gem

If you actually read the message you got, you will note that you *can*
update Rubygems using itself in Debian. You just have to define the
REALLY_GEM_UPDATE_SYSTEM environment variable to confirm that you really
know what you are doing.

-- 
Antonio Terceiro <terceiro@debian.org>

Attachment: signature.asc
Description: Digital signature


Reply to: