[DRE-maint] Bug#711079: bundler: Bundler is incompatible with chruby
Alex Young
alex at blackkettle.org
Tue Jun 4 13:31:21 UTC 2013
Package: bundler
Version: 1.1.4-6
Severity: normal
Dear Maintainer,
The /usr/bin/bundle binary supplied by the bundler package uses
"#!/usr/bin/env ruby" as its shebang line. This means that when I run
`bundle install` with a non-system ruby enabled, and I don't have the
bundler gem separately installed, the `bundle install` command fails
with the following output:
$ bundle install
/home/alex/.rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- bundler (LoadError)
from /home/alex/.rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
from /usr/bin/bundle:2:in `<main>'
This is specifically a problem when using chruby (and chruby-exec) to
select the activated ruby.
The `bundle` package should specify the system ruby to run with,
otherwise `require "bundler"` will fail to see the installed libraries
at /usr/lib/ruby/vendor_ruby/bundler. Replacing the shebang line with
"#!/usr/bin/ruby" fixes this.
-- System Information:
Debian Release: 7.0
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE= (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages bundler depends on:
ii ruby 1:1.9.3
ii ruby1.9.1 [ruby-interpreter] 1.9.3.194-8.1
Versions of packages bundler recommends:
ii build-essential 11.5
ii less 444-4
ii ruby-dev 1:1.9.3
ii rubygems-integration 1.1
ii sudo 1.8.5p2-1+nmu1
bundler suggests no packages.
-- no debconf information
More information about the Pkg-ruby-extras-maintainers
mailing list