2012-11-15 79 views
7

我似乎已經把自己挖到了一個角落。Homebrew已安裝一半。無法重新安裝或卸載 - 我如何手動卸載?

我第一次安裝Homebrew的時候中途停了下來,卡住了。經過〜15分鐘的等待,我退出了終端。我的原始輸入是自制軟件homepage

ruby -e "$(curl -fsSkL 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 

所以,作爲建議,我跑

rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup 

,並得到

-bash: brew: command not found 

我試圖從Homebr運行卸載腳本新聞常見問題,這似乎也沒有幫助。還有什麼我可以嘗試?我將如何手動卸載?

回答

2

那麼現在如果您再次運行ruby -e「$(curl -fsSkL raw.github.com/mxcl/homebrew/go)」會發生什麼?

當你終止了終端後,你ps的auxw | grep -E'ruby | curl'並殺死那些?

你是否在使用/ usr/local來做其他事情?如果沒有,則可以使用rm -rf/usr/local並再次運行安裝命令。

+1

今天早上我做的第一件事就是運行'ruby -e「$(curl -fsSkl raw.gihub.com/mxcl/homebrew/go)」'然後安裝。我檢查確定只有一個自制安裝,並且有。我不確定這個問題是什麼,但是謝謝@jrwren的幫助。 – tmschl

0

我不是在終端親,但我發現在我的.gitconfig一條線,讓我無法運行安裝:

[push] 
    default = simple 

評論說,行了我的.gitconfig的安裝精美跑後。