Reputation: 107
I seem to have dug myself into a corner.
I was halfway through installing Homebrew the first time and it got stuck. After ~15 minutes of waiting I quit terminal. My original input was what's from the homebrew homepage.
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
I reopened terminal and tried to re-install and got -
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
So, as suggested, I ran
rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
and got
-bash: brew: command not found
I tried to run the uninstall script from the Homebrew FAQ and that didn't seem to help either. Anything else I can try? How would I manually uninstall?
Upvotes: 7
Views: 6746
Reputation: 15
If you run rm -rf /usr/local
you might get permission denied or risk deleting files of other installed programs. Deleting only /usr/local/Homebrew/
folder worked for me
Upvotes: 0
Reputation: 2029
I'm not a pro at terminal but I found a line in my .gitconfig that prevented me from running the install:
[push]
default = simple
After commenting that line out of my .gitconfig the install ran beautifully.
Upvotes: 0
Reputation: 17898
So what happens now if you run ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)" again?
After you killed terminal did you ps auxw | grep -E 'ruby|curl' and kill those?
Are you using /usr/local for anything else? If not, you can rm -rf /usr/local and run the install command again.
Upvotes: 2