Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundled bundler scripts reference wrong ruby version #3

Open
gix opened this issue Dec 18, 2014 · 4 comments
Open

Bundled bundler scripts reference wrong ruby version #3

gix opened this issue Dec 18, 2014 · 4 comments

Comments

@gix
Copy link

gix commented Dec 18, 2014

The ruby-2.1 package (I used ruby-2.1_0.2.0-1415995299.9592b2c.trusty_amd64.deb) ships with bundler 1.6.3 installed. The bundler executables in /opt/ruby-2.1/lib/ruby/gems/2.1.0/bin specify the wrong Ruby version in their shebang line:

#!/usr/bin/env ruby1.9.1"
@crohr
Copy link
Member

crohr commented Dec 18, 2014

Actually the bundle executable to use is in /opt/ruby-2.1/bin/bundle, and this one has an updated shebang added. Why did you try using /opt/ruby-2.1/lib/ruby/gems/2.1.0/bin/bundle?

@gix
Copy link
Author

gix commented Dec 18, 2014

I was using chruby to switch and for non-root users it adds $GEM_ROOT/bin to $PATH.

I'm not sure who is in the wrong here, and maybe this is an outdated path for gem executables, but if these aren't supposed to be used, maybe they could be excluded from the package?

@crohr
Copy link
Member

crohr commented Dec 18, 2014

I've actually replaced /opt/ruby-2.1/bin/bundle with a symlink to $GEM_ROOT/bin/bundle. That way both options work. I just generated new packages on https://packager.io/gh/pkgr/rubies. Could you tell me if that fixes your issue?

@gix
Copy link
Author

gix commented Dec 18, 2014

The bundle executable looks for ruby in the same directory which fails for the one in $GEM_ROOT/bin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants