Closed rstacruz closed 11 years ago
Ergh, what a pain. I'll let the commit history speak for itself. You'll have to recommunize and reinstall any gems with binstubs.
Theoretically, this new solution should make the symlink redundant. But I'll leave it in place for now.
@tpope, can you explain how to do that? I tried the following:
rbenv sequester --all
rbenv communize --all
gem uninstall rails
gem install rails
rbenv rehash
Binary is still not found:
> rails
rbenv: rails: command not found
The `rails' command exists in these Ruby versions:
1.9.3-p194
That should be more than sufficient. Debugging is a bit opaque. Check each of ~/.rbenv/versions/*/etc/gemc
and make sure they were created by communal gems. Then check ~/.gemrc
for anything that could interfere.
I forgot that rails executable is inside railties, not rails. Reinstalling railties worked fine. Thanks for the fix!
When installing gems that have executables, the executables are only available in one Ruby version.
To reproduce:
2.0.0-rc2
and2.0.0-p0
)rbenv shell 2.0.0-rc2; gem install unicorn
)rbenv rehash
)rbenv shell 2.0.0-p0
)unicorn
Actual result: