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



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to