我在运行厨师食谱时遇到错误。 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的安装情况。
答案 0 :(得分:2)
PATH
而非GEM_HOME
和/或GEM_HOME
,就会发生这种情况。