[DRE-maint] Bug#649775: Bug#649775: rbenv: Does not work with non-root installed gems

Brandon Simmons brandon.m.simmons at gmail.com
Mon Nov 28 20:36:27 UTC 2011


I don't seem to get the shims in place when I gem install passenger
from another directory either (where rbenv uses the global default
ruby 1.9). I've looked around to see if I may have configured
something in a funny way in the past, but I'm stumped. Thought I
should point out that I also have this in my .zshrc

    eval "$(rbenv init -)"

I don't really have any gems that I don't mind blowing away and
re-installing later, if you think some sort of remove --purge of my
ruby crap might help.

Also, please let me know if you'd like me to file a new bug, as I was
mistaken that this is related specifically to locally-installed gems.

Thanks

On Fri, Nov 25, 2011 at 11:45 AM, Brandon Simmons
<brandon.m.simmons at gmail.com> wrote:
> I'm sorry, it actually seems like I'm not getting shims set up even
> when I install the passenger gem as root and then run 'rehash':
>
>    $ ls ~/.rbenv/versions/1.8.7-debian/bin
>    erb  gem  irb  rdoc  ri  ruby  testrb
>    $ ls ~/.rbenv/shims
>    erb  gem  irb  rdoc  ri  ruby  testrb
>
> looks like the passenger binaries ended up in /usr/local/bin. That
> doesn't seem right, since if I gem install passenger in ruby 1.9 that
> binary will be clobbered, right?
>
> All of the shims that were set up for me are in /usr/bin
>
>
> On Fri, Nov 25, 2011 at 10:38 AM, Brandon Simmons
> <brandon.m.simmons at gmail.com> wrote:
>> On Fri, Nov 25, 2011 at 7:39 AM, Antonio Terceiro <terceiro at debian.org> wrote:
>>> Brandon Simmons escreveu isso aí:
>>>> Package: rbenv
>>>> Version: 0.1.2+git20100922-1
>>>> Severity: normal
>>>>
>>>> Dear Maintainer,
>>>> I prefer not to install gems as root, e.g.
>>>>
>>>>     $ gem install passenger --user-install
>>>>
>>>> rbenv doesn't seem to create shims for user-installed binaries
>>>>
>>>>     $ rbenv which passenger-install-nginx-module
>>>>     rbenv: passenger-install-nginx-module: command not found
>>>>
>>>> is this expected behavior? is there a workaround?
>>>
>>> Did you run `rbenv rehash` after installing the passenger gem?
>>
>> Yes, I did
>>
>>>
>>> If you did, I'll need you to describe your setup:
>>
>> Installing the passenger gem was done in a directory with a local ruby
>> version set to 1.8.
>>
>>    jberryman ~ » rbenv version
>>    1.9.3-debian (set by /home/me/.rbenv/global)
>>
>> The following are from the working directory with the local ruby set:
>>
>>>
>>> rbenv versions
>>
>> * 1.8.7-debian (set by /home/me/Work/LabArchives/labarchives/.rbenv-version)
>>  1.9.3-debian
>>
>>> rbenv version
>>
>> 1.8.7-debian (set by /home/me/Work/Fook/fook/.rbenv-version)
>>
>>> which ruby
>>
>> /home/me/.rbenv/shims/ruby
>>
>>> ruby -v
>>
>> ruby 1.8.7 (2011-06-30 patchlevel 352) [i486-linux]
>>
>>> which gem
>>
>> /home/me/.rbenv/shims/gem
>>
>>> gem -v
>>
>> 1.8.10
>>
>>> ruby -rubygems -e 'puts Gem.dir'
>>
>> /var/lib/gems/1.8
>>
>>> ruby -rubygems -e 'puts Gem.bindir'
>>
>> /usr/local/bin
>>
>>>
>>> --
>>> Antonio Terceiro <terceiro at debian.org>
>>>
>>
>> Thanks for your help.
>>
>





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