试图运行:
sudo curl -L https://www.opscode.com/chef/install.sh | bash
我收到错误消息:
makeselfinst: Cannot install to /opt/chef
如何让 Chef 完全安装在 OSX 上?
试图运行:
sudo curl -L https://www.opscode.com/chef/install.sh | bash
我收到错误消息:
makeselfinst: Cannot install to /opt/chef
如何让 Chef 完全安装在 OSX 上?
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.
我暂时结束chmod 777
了/opt/chef
/usr/bin
chown -R myuser /opt/chef
这似乎解决了运行 curl 命令的问题。