创建食谱时遇到问题,如下所示:
这与此有什么关系?我安装了chef-dk
。我是厨师的新手,所以如果您需要有关我的环境的更多信息,请不要犹豫。
root@chef-work:/home/ubuntu/chef-repo/cookbooks# chef generate cookbook learn_chef_apache2
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_PAPER = "nb_NO.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Can't open generate: No such file or directory.
Can't open cookbook: No such file or directory.
Can't open learn_chef_apache2: No such file or directory.
答案 0 :(得分:1)
检查$ PATH,type -a chef
。我猜你安装了多个chef
可执行文件,而ChefDK中的可执行文件不是第一个。您可以将chef shell-init
移动到shellrc文件的底部。