IAmGroot
IAmGroot

Reputation: 53

Could not find 'bundler' (>= 0) among 10 total gem(s) (Gem::LoadError)

I am getting below error while running my chef recipe. The rvm, apache passenger are installed using community chef recipes.

STDERR: /usr/local/rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:298:in `to_specs': Could not find 'bundler' (>= 0) among 10 total gem(s) (Gem::LoadError)
    from /usr/local/rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:309:in `to_spec'
    from /usr/local/rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_gem.rb:47:in `gem'
    from /usr/local/rvm/gems/ruby-1.9.3-p125@global/bin/bundle:22:in `<main>'
    from /usr/local/rvm/gems/ruby-1.9.3-p125/bin/ruby_executable_hooks:15:in `eval'
    from /usr/local/rvm/gems/ruby-1.9.3-p125/bin/ruby_executable_hooks:15:in `<main>'

Can Anyone tell me why is this error coming. I checked that the bundler gem is installed.

Upvotes: 1

Views: 6017

Answers (1)

mpapis
mpapis

Reputation: 53178

this happens when you have only set PATH and not GEM_HOME and/or GEM_HOME.

Upvotes: 2

Related Questions