我第一次尝试在 Yosemite 上安装 Homebrew。我选择通过终端安装,尽管我不是这方面的专家。然后就发生了这样的事:
-e:161: warning: Insecure world writable dir /usr/local in PATH, mode 040777
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
==> The following new directories will be created:
/usr/local/lib
Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/mkdir -p /usr/local/lib
Password:
然后我输入了密码。然后就发生了这样的事:
mkdir: /usr/local/lib: Not a directory
Failed during: /usr/bin/sudo /bin/mkdir -p /usr/local/lib
当我检查我的 /usr/local/ 目录时,已经有一个名为 lib 的文件。
我似乎无法用这个安装 Homebrew。有人可以建议我下一步吗?提前非常感谢。
好吧,您至少需要暂时重命名
/usr/local/lib
,因为它不属于 homebrew 并且妨碍了:
sudo mv /usr/local/lib /usr/local/oldlib