sstephenson/rbenv — Issue #125: Executables for global gems not in PATH
Author: fhemberger
Created: 2011-10-17 18:58:05+00:00
State: open

I installed ruby and set the global version to 1.92:

$ rbenv install 1.9.2-p290
$ rbenv rehash
$ rbenv global 1.9.2-p290

In a project, I used `bundle` to install some gems with binaries, for exampe 'compass'. I did a `rbenv rehash` again, but the binary stubs don't appear in `~/.rbenv/shims`, so calling compass gives me a 'command not found' error.

I worked around this issue by adding `"~/.rbenv/versions/$(rbenv global)/lib/ruby/gems/1.9.1/bin"` to my PATH, but I guess, that's not the way to go. ;) Did I miss something?

System is OS X 1.6.8 using bash, rbenv installed via homebrew.