0
我对厨师非常陌生,试图学习它。我在我的系统上安装了chef-client,将.pem文件和knife.rb文件复制到了我的主厨回购的主厨目录中,现在我试图访问刀,但是我收到以下错误消息。谁能帮我吗 ?厨师无法使用刀
[email protected]:~/mygit/chef-repo/chef$ knife client list -VV
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.6.0/lib/chef/mixin/path_sanity.rb:26:in `enforce_path_sanity': undefined method `split' for nil:NilClass (NoMethodError)
from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.6.0/lib/chef/knife.rb:465:in `run_with_pretty_exceptions'
from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.6.0/lib/chef/knife.rb:173:in `run'
from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.6.0/lib/chef/application/knife.rb:123:in `run'
from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.6.0/bin/knife:25:in `<top (required)>'
from /usr/bin/knife:23:in `load'
from /usr/bin/knife:23:in `<main>'
查看源公司在该行没有'existing_paths = ENV [ “PATH”。分裂(PATH_SEPARATOR)',它建议您没有定义PATH环境变量。 –
@JaredRussell您应该对该评论做出回答。 –