Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Chef infra 试图配置ruby环境,但我发出了echo';“评估”$(厨师长shell Int bash)“'&燃气轮机>;~/。它什么都不做_Chef Infra - Fatal编程技术网

Chef infra 试图配置ruby环境,但我发出了echo';“评估”$(厨师长shell Int bash)“'&燃气轮机>;~/。它什么都不做

Chef infra 试图配置ruby环境,但我发出了echo';“评估”$(厨师长shell Int bash)“'&燃气轮机>;~/。它什么都不做,chef-infra,Chef Infra,安装完工作站后,我进入下一节“入门”。我试图配置ruby环境,但当我发出 echo 'evaluation "$(chef shell-init bash)"' >> ~/.bash_profile 它什么也不做。救命啊 它是否修改了您个人资料的内容?检查文件内容以查看是否添加了chef脚本init: cat ~/.bash_profile 之后,检查您的ruby路径是否指向chef one: which ruby 执行chef shell init时,它将

安装完工作站后,我进入下一节“入门”。我试图配置ruby环境,但当我发出

echo 'evaluation "$(chef shell-init bash)"' >> ~/.bash_profile

它什么也不做。救命啊

它是否修改了您个人资料的内容?检查文件内容以查看是否添加了chef脚本init:

cat ~/.bash_profile
之后,检查您的ruby路径是否指向chef one:

which ruby

执行
chef shell init
时,它将打印需要添加到
中的内容

这对你有用

echo 'eval "$(chef shell-init bash)"' >> ~/.bashrc

请链接到您正在遵循的指南,并显示您的确切厨师版本和操作系统。请将您输入的命令及其确切输出添加到您的问题中。另外,请确保输入的命令完全如图所示(可能是
eval
而不是
evaluation