我第一次尝试在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 的文件。
This is a screen-capture of my /usr/local/ directory.
我似乎无法安装Homebrew。有人可以在下一步告诉我吗?非常感谢。
答案 0 :(得分:1)
您需要(至少是暂时的)重命名/usr/local/lib
,因为它不属于自制并且阻碍了:
sudo mv /usr/local/lib /usr/local/oldlib