不幸的是,相对于Linux,我们只能使用Windows命令行.
当从命令行安装厨师食谱时,请使用
knife cookbook site install COOKBOOKCOOKBOOK.tar.gz文件将下载,但不会解压缩。如何在Windows命令行中实现这一点?
收到的错误消息
ERROR: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
`...` `STDERR: 'tar' is not recognized as an internal or external command, operable program or batch file` 我需要做什么,使食谱自动安装,因为它通常应该?
编辑:附加信息: cygwin & ruby也安装了。
将安装tar包,并可以使用
tar xvzf apt.tar.gz发布于 2012-10-10 15:43:58
问题在于Windows中的PATH变量。
确保PATH环境变量不包含任何空格。
如果有空格,移除它们或
将适用于主厨安装的路径移到PATH变量的开头
D:\Programs\Git\cmd;D:\Programs\cygwin\bin;D:\Programs\chef\bin;RESTOFPATH发布于 2013-08-05 14:19:31
如果安装了git窗口,则使用git bash shell。
https://stackoverflow.com/questions/12773674
复制相似问题