错误安装家酿(Error installing Homebrew)

2019-10-18 19:48发布

我想对他们的主页中提到的命令我的系统上安装自制

ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"

但它给我下面的错误 -

-e:67: warning: Insecure world writable dir /usr/local in PATH, mode 040777
-e:96: warning: Insecure world writable dir /usr/local in PATH, mode 040777
It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:
rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup

如果我尝试做清理工作,它说,它无法找到冲泡命令。 我无言以对,此间如果我有它在我的机器上安装为什么我不能运行任何酿造命令。

Answer 1:

运行此:

xcode-select --install
rm -rf /usr/local/Cellar /usr/local/.git
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"


Answer 2:

听起来像是如果你是做一个ls -al /usr你会看到本地目录是drwxrwxrwx ......你试过chmod 775 /usr/local (可能会或可能不会需要sudo预谋)。

此外,安装在冲泡/usr/local/bin/brew ? 或者别的地方?



文章来源: Error installing Homebrew