无法在优胜美地上安装Homebrew:/usr/local/lib已存在 [英] Can't install Homebrew on Yosemite: /usr/local/lib already exists
问题描述
我第一次尝试在优胜美地安装Homebrew.我选择通过终端安装,尽管我不是专家.然后这发生了:
I tried installing Homebrew on Yosemite for the first time. I chose to install via Terminal, though I am no expert on it. And then this happened:
-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:
然后输入密码.然后这发生了:
Then I entered my password. Then this happened:
mkdir: /usr/local/lib: Not a directory
Failed during: /usr/bin/sudo /bin/mkdir -p /usr/local/lib
当我检查/usr/local/目录时,已经有一个名为 lib 的文件.
And when I checked my /usr/local/ directory there was already a file named lib.
我似乎无法与此一起安装Homebrew.有人可以建议我下一步吗?提前非常感谢.
I can't seem to install Homebrew with this. Can anyone please advise me on my next step? Thanks a lot in advance.
推荐答案
您至少需要暂时重命名/usr/local/lib
,因为它不属于自制,并且方式为:
Well you need to, at least temporarily, rename /usr/local/lib
because it doesn't belong to homebrew and is in the way:
sudo mv /usr/local/lib /usr/local/oldlib
这篇关于无法在优胜美地上安装Homebrew:/usr/local/lib已存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!