0

试图运行:

sudo curl -L https://www.opscode.com/chef/install.sh | bash

我收到错误消息:

makeselfinst: Cannot install to /opt/chef

如何让 Chef 完全安装在 OSX 上?

4

2 回答 2

2

You can use the Omnibus installer for a simple, one line install command:

curl -L https://www.opscode.com/chef/install.sh | sudo bash

The sudo comes before the bash, not the curl.

In your example, you are running the "download" command as root, but the install command as a general user. They should be flipped - all users can download things, but only privileged users can install them.

于 2014-01-03T16:30:51.337 回答
1

我暂时结束chmod 777/opt/chef/usr/binchown -R myuser /opt/chef

这似乎解决了运行 curl 命令的问题。

于 2013-08-30T21:45:57.607 回答