Ruby-build: rbenv: bundle: command not found

Created on 5 Oct 2013  路  11Comments  路  Source: rbenv/ruby-build

I am still experiencing this problem and I already tried the rbenv-rbx plugin but that doesn't do squat for me.

The `bundle' command exists in these Ruby versions:
2.0.0-p195
2.0.0-p247

I don't think this is a rubinius issue but rather a rbenv or ruby-build issue. What is your take on it?

On Mac OS X Mavericks with XCode 5 and latest rbenv/ruby-build through homebrew.

Most helpful comment

This may be a bit naive as I am pretty new to ruby
I just needed to run gem install rails to fix this error message after installing ruby 2.4.0

All 11 comments

I'm having the same issue.

I think it's because gem executables in rbx are stored under .rbenv/versions/rbx-2.0.0/gems/bin/ instead of .rbenv/versions/rbx-2.0.0/bin so when you run rbenv rehash shims for gems aren't created.

Yes correct

ls ~/.rbenv/versions/rbx-2.0.0/bin
=> gem    irb    rake   rbx    rdoc   ri     ruby   testrb

ls ~/.rbenv/versions/rbx-2.0.0/gems/bin
=> bundle  bundler irb     racc    racc2y  rake    rdoc    ri      y2racc

Wonder what the fix for that would be

I forked rbenv-rbx and updated the paths http://github.com/martxel/rbenv-rbx.

Someone already sent the same pull requests.

Thanks @martxel that sure seams to solve the problem for me. I wish we could have this integrated into is it rbenv?

Yeah, it would be easy to integrate it with rbenv, but they might not want to do it as it's rbx specific.

This is not a ruby-build problem. It's a problem of rbenv not discovering rbx's binstubs. Please follow the referenced rbenv issue for updates.

I tried using the plugin and it doesn't work.

[8][chimkan: /Users/chimkan/.rbenv/versions]$ bundle
rbenv: bundle: command not found

The `bundle' command exists in these Ruby versions:
  2.0.0-p247

Do I have to do something to activate the plugin (rbenv-rbx)? I installed the rbx-2.0.0 version.

@designium Are you using martxel's fork of the plugin?

Does bundle exist in:

ls $(rbenv prefix)/gems/bin

I used the other fork, now that I changed to the martxel's one it works! Thanks.

This is now fixed by #433, no rbx-fix plugin needed for rbenv again! Please follow the instructions in that ticket to fix your existing rbx installs.

This may be a bit naive as I am pretty new to ruby
I just needed to run gem install rails to fix this error message after installing ruby 2.4.0

Was this page helpful?
0 / 5 - 0 ratings