[DRE-maint] Bug#654550: Bug#654550: rbenv: Should work seamlessly with system rubygems.

Antonio Terceiro terceiro at debian.org
Thu Feb 2 15:33:58 UTC 2012


Matijs van Zuijlen escreveu isso aí:
> On 02/01/2012 12:20 AM, Antonio Terceiro wrote:
> >Matijs van Zuijlen escreveu isso aí:
> >>That sounds like a very good plan. I have one thing I would like to
> >>change, which is that it would set GEM_HOME to ~/.gem/ruby/1.8/gems,
> >>to match what plain rubygems would do when given the option
> >>--user-install.
> >
> >Not sure about that. If we use the same directory as --user-install
> >would, you risk having two different interpreters installing gems to the
> >same place. I think it's better to keep each interpreter with its
> >isolated gem environment.
> 
> I'm not sure I see how that risk would happen. It would be only the
> two system Rubies that install to ~/.gem/ruby/<version>/gems.

If you pass --user-install to gem under any Ruby 1.9, they will all
install to the same place.

> >All in all, if you choose to use rbenv, you should not need to care
> >where the gems are installed, as long as their programs are in your path
> >and you can require their libraries.
> 
> True, but it would be nice if the system rubies could use the same
> gems, whether or not they're being run through rbenv. I would like
> to avoid having more copies of gems installed than necessary.

You can symlink ~/.gem/ruby/$version to the corresponding gems directory
inside ~/.rbenv/

-- 
Antonio Terceiro <terceiro at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20120202/2647a844/attachment.pgp>


More information about the Pkg-ruby-extras-maintainers mailing list