to_specs':在[](Gem :: LoadError)中找不到厨师(> = 0) [英] to_specs': Could not find chef (>= 0) amongst [] (Gem::LoadError)
问题描述
我试图在我的笔记本电脑上安装厨师和刀子ec2插件来安装工作站。最初,我使用大厨总括安装厨师客户端,但安装后,我遇到了一些问题,所以一个快速的谷歌搜索将我带到了stackoverflow和几个线程建议我安装厨师使用宝石。我在ruby 2.0.0-p0上运行并且安装了厨师和刀子ec2,但现在我遇到了一个不同的问题。我已经发布了这个问题,请看看。
I am trying to install chef and knife ec2 plugin on my laptop to set up the workstation. Initially I use chef omnibus to install chef-client but after installing I encountered some problems, so a quick googling landed me to stackoverflow and couple of threads suggested me to install chef using gem. I am running on ruby 2.0.0-p0 and insalled chef and knife ec2 but I am getting a different issue now. I have posted the issue bleow, kindly have a look.
请帮我解决这个问题
Please help me out to fix me this issue
/home/jeevan/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/dependency.rb:247:in `to_specs': Could not find chef (>= 0) amongst [] (Gem::LoadError)
from /home/jeevan/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/dependency.rb:256:in `to_spec'
from /home/jeevan/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems.rb:1231:in `gem'
from /home/jeevan/.rvm/gems/ruby-2.0.0-p0/bin/chef-client:18:in `<main>'
from /home/jeevan/.rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14:in `eval'
from /home/jeevan/.rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14:in `<main>'
推荐答案
t使用系统红宝石,感谢RVM:
This happened to me when I wasn't using system ruby, thanks to RVM:
$ echo $GEM_HOME
/home/spiffytech/.rvm/gems/ruby-1.9.3-p448@rails3tutorial2ndEd
请注意, @ rails3tutorial2ndEd
Ruby安装,而不是系统安装。
Note that @rails3tutorial2ndEd
denotes a special Ruby install, and not the system install.
为了解决这个问题,再次让刀子工作,我跑了:
To fix this and make knife work again, I ran:
rvm reset
这篇关于to_specs':在[](Gem :: LoadError)中找不到厨师(> = 0)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!