找不到10个宝石中的'bundler'(> = 0)(Gem :: LoadError)

时间:2013-10-01 18:58:00

标签: ruby gem rvm bundler chef

我在运行厨师食谱时遇到错误。 rvm,apache乘客使用社区厨师食谱安装。

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>'

有谁能告诉我为什么会出现这个错误。我检查了Bundler gem的安装情况。

1 个答案:

答案 0 :(得分:2)

如果您只设置了PATH而非GEM_HOME和/或GEM_HOME,就会发生这种情况。