to_specs': Could not find chef (>= 0) amongst [] (Gem::LoadError)

前端 未结 1 1793
迷失自我
迷失自我 2020-12-09 17:13

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 encounter

相关标签:
1条回答
  • 2020-12-09 17:28

    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
    

    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
    
    0 讨论(0)
提交回复
热议问题