它已經花了很長時間,我還沒有解決方案來解決我安裝Homebrew的問題。爲什麼重新安裝和卸載Homebrew會失敗?
當我鍵入ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
,我得到:
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
Ok
我輸入rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
,並得到這個錯誤:
rm: /usr/local/Cellar: Directory not empty
當我進入這個目錄沒有文件。我怎樣才能刪除該目錄?
我也試過sudo rm -rf /usr/local/Cellar
。
你試過chmod然後rm? – SocoM
不,我應該輸入什麼數字的chmod命令? –
'brew doctor'說什麼? – tadman