在10个总gem中找不到“bundler”(>= 0)(gem:LoadError)

时间:2021-07-06 11:48:19

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

我在运行我的厨师食谱时出错了。rvm、apache passenger是使用community chef菜谱安装的。

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.

谁能告诉我为什么这个错误来了。我检查了bundler gem的安装。

1 个解决方案

#1


2  

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

当您只有设置路径而没有设置GEM_HOME和/或GEM_HOME时,就会发生这种情况。

#1


2  

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

当您只有设置路径而没有设置GEM_HOME和/或GEM_HOME时,就会发生这种情况。