Skip to content

Instantly share code, notes, and snippets.

@tomwans
Created August 14, 2011 14:42
Show Gist options
  • Save tomwans/1144937 to your computer and use it in GitHub Desktop.
Save tomwans/1144937 to your computer and use it in GitHub Desktop.
Toms:.rbenv/master tom$ rbenv version
rbx-1.2.4 (set by /Users/tom/.rbenv/default)
Toms:.rbenv/master tom$ gem install bundler --no-ri --no-rdoc
Successfully installed bundler-1.0.17
1 gem installed
Toms:.rbenv/master tom$ bundle
rbenv: bundle: command not found
The `bundle' command exists in these Ruby versions:
1.8.7-p352
Toms:.rbenv/master tom$ rbenv rehash
Toms:.rbenv/master tom$ bundle
rbenv: bundle: command not found
The `bundle' command exists in these Ruby versions:
1.8.7-p352
@rodrigoalvesvieira
Copy link

Did you solve this problem? I'm having it too :(

@tomwans
Copy link
Author

tomwans commented Sep 26, 2011

This is fixed with the newest ruby-build. I used ruby-build to build rbx (way back when) and it didn't specify the gemsdir, so rbenv didn't know where the gem went.

If you:

  • Install the newest version of ruby-build and rbenv (you can do it through homebrew)
  • rebuild the version of ruby you want with ruby-build into (~/.rbenv/versions/)
  • should work.

@rodrigoalvesvieira
Copy link

Yes! Yes! Thanks, Tom!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment