Created
October 14, 2010 23:04
-
-
Save jfirebaugh/627247 to your computer and use it in GitHub Desktop.
rvm problem with bundler in global gemset
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I have bundler installed in the @global gemset but not in the default gemset: | |
$ rvm use @global | |
Using /Users/jfire/.rvm/gems/jruby-1.5.3 with gemset global | |
$ gem list | grep bundler | |
bundler (1.0.2) | |
$ rvm use jruby | |
Using /Users/jfire/.rvm/gems/jruby-1.5.3 | |
$ gem which bundler | |
/Users/jfire/.rvm/gems/jruby-1.5.3@global/gems/bundler-1.0.2/lib/bundler.rb | |
$ which bundle | |
/Users/jfire/.rvm/gems/jruby-1.5.3@global/bin/bundle | |
In this configuration, `rake spec` fails: | |
$ rake spec --trace | |
[snip] | |
/Users/jfire/.rvm/rubies/jruby-1.5.3/bin/jruby -S bundle exec rspec [snip files] | |
/Users/jfire/.rvm/rubies/jruby-1.5.3/lib/ruby/site_ruby/1.8/rubygems.rb:777:in `report_activate_error': Could not find RubyGem bundler (>= 0) (Gem::LoadError) | |
from /Users/jfire/.rvm/rubies/jruby-1.5.3/lib/ruby/site_ruby/1.8/rubygems.rb:211:in `activate' | |
from /Users/jfire/.rvm/rubies/jruby-1.5.3/lib/ruby/site_ruby/1.8/rubygems.rb:1056:in `gem' | |
from /Users/jfire/.rvm/gems/jruby-1.5.3@global/bin/bundle:18 | |
rake aborted! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
IIRC the only solution was to have bundler installed in every gemset. It was more of a bundler limitation than an rvm issue.