2017-02-17 103 views
0

我嘗試首次在優勝美地上安裝Homebrew。我選擇通過終端安裝,但我不是專家。然後發生這種情況:無法在優勝美地上安裝Homebrew:/ usr/local/lib已存在

-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 /本地/目錄中已經有一個名爲LIB文件。

This is a screen-capture of my /usr/local/ directory.

我似乎無法與此安裝自制。任何人都可以請我在我的下一步?提前致謝。

+0

難道我的回答整理一下你的問題嗎?如果是這樣,請考慮接受它作爲您的答案 - 通過點擊投票計數旁邊的空心綠色勾號/複選標記。如果沒有,請說出什麼不起作用,以便我或其他人可以進一步幫助您。謝謝。 http://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work/5235#5235 –

+0

@MarkSetchell - 它確實爲我工作。爲了不打勾你的答案而抱歉,我只是對這個環境不熟悉。謝謝! –

回答

1

那麼你需要,至少暫時,重命名/usr/local/lib,因爲它不屬於自制,是在方式:

sudo mv /usr/local/lib /usr/local/oldlib