[DRE-maint] Bug#654550: Bug#654550: rbenv: Should work seamlessly with system rubygems.
Matijs van Zuijlen
matijs at matijs.net
Fri Jan 27 12:49:24 UTC 2012
On 01/08/2012 09:11 PM, Antonio Terceiro wrote:
> What do you think of:
>
> - forget about /usr/local, since rbenv is meant to manage interpreters
> on a per-user basis.
> - `rbenv exec` sets GEM_HOME to ~/.rbenv/versions/1.8.7-debian/gems, so
> that Rubygems and bundler will install stuff to there.
> - `rbenv rehash` symlinks all programs installed in $GEM_HOME/bin into
> ~/.rbenv/versions/1.8.7-debian/bin so that they all get shims in
> ~/.rbenv/shims
>
> This way the interpreters installed by `rbenv alternatives` will behave
> more like regular rbenv-installed interpreters. And your gem programs
> installed under one interpreter are only available to that interpreter.
>
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.
Kind regards,
--
Matijs
More information about the Pkg-ruby-extras-maintainers
mailing list