2017-01-17 8 views
0

誰もナイフを実行できない理由を提案できますか?ナイフを実行しようとしたときナイフCLIを実行できません

は、ここに私のエラーです:

# knife 
/usr/local/rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- chef/knife/core/subcommand_loader (LoadError) 
from /usr/local/rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' 
from /usr/local/rvm/gems/ruby-1.9.3-p327/gems/chef-11.8.0/lib/chef/knife.rb:26:in `<top (required)>' 
from /usr/local/rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require' 
from /usr/local/rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require' 
from /usr/local/rvm/gems/ruby-1.9.3-p327/gems/chef-11.8.0/lib/chef/application/knife.rb:18:in `<top (required)>' 
from /usr/local/rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require' 
from /usr/local/rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require' 
from /usr/local/rvm/gems/ruby-1.9.3-p327/gems/chef-11.8.0/bin/knife:23:in `<top (required)>' 
from /usr/local/rvm/gems/ruby-1.9.3-p327/bin/knife:19:in `load' 
from /usr/local/rvm/gems/ruby-1.9.3-p327/bin/knife:19:in `<main>' 
from /usr/local/rvm/gems/ruby-1.9.3-p327/bin/ruby_executable_hooks:15:in `eval' 
from /usr/local/rvm/gems/ruby-1.9.3-p327/bin/ruby_executable_hooks:15:in `<main>' 

他のいくつかの有用な出力:

# rvm list 
rvm rubies 

=* ruby-1.9.3-p327 [ x86_64 ] 
ruby-1.9.3-p551 [ x86_64 ] 

# => - current 
# =* - current && default 
# * - default 

別:

# rvm env 
export PATH="/usr/local/rvm/gems/ruby-1.9.3-            p327/bin:/usr/local/rvm/gems/ruby-1.9.3-  [email protected]/bin:/usr/local/rvm/rubies/ruby-1.9.3-p327/bin:$PATH" 
export GEM_HOME='/usr/local/rvm/gems/ruby-1.9.3-p327' 
export GEM_PATH='/usr/local/rvm/gems/ruby-1.9.3-   p327:/usr/local/rvm/gems/[email protected]' 
export MY_RUBY_HOME='/usr/local/rvm/rubies/ruby-1.9.3-p327' 
export IRBRC='/usr/local/rvm/rubies/ruby-1.9.3-p327/.irbrc' 
unset MAGLEV_HOME 
unset RBXOPT 
export RUBY_VERSION='ruby-1.9.3-p327' 

答えて

2

使用ChefDK。他のRuby環境でknifeを使用することはお勧めできません。私はRuby 1.xと特に互換性がないと思います。

+0

これは間違いありません。現時点で2.2以上が必要です。 ChefDKは現在すべてのプラットフォームで2.3.1を使用しています。 – coderanger

関連する問題