2

我正在运行一个命令:cknife cluster launch mysite-production app --bootstrap

/Users/shamoon/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:60:in `gem_original_require': no such file to load -- cluster_chef/knife (LoadError)
    from /Users/shamoon/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:60:in `require'
    from /Users/shamoon/.rvm/gems/ruby-1.8.7-p370@mysite/gems/cluster_chef-0.1.0.x2/bin/cknife:4
    from /Users/shamoon/.rvm/gems/ruby-1.8.7-p370@mysite/bin/cknife:19:in `load'
    from /Users/shamoon/.rvm/gems/ruby-1.8.7-p370@mysite/bin/cknife:19

这就是我得到的错误。我试过: bundle install,这表明:Your bundle is complete! Usebundle show [gemname]to see where a bundled gem is installed.

那么cknife它没有安装是怎么回事?

4

2 回答 2

1

您是否尝试过捆绑执行命令?

所以:

bundle exec cknife cluster launch mysite-production app --bootstrap
于 2013-01-30T20:25:50.150 回答
0

该错误似乎试图从 Rubygems 中检索它,但它不存在。

你有没有跑过gem install knife-cluster然后又跑了bundle

你为什么使用cknife

https://github.com/rberger/knife-cluster

于 2013-01-24T14:39:14.590 回答