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?
On Mac Intel machines, that's all you need to do; Homebrew is ready to use. On Mac Intel, Homebrew installs itself into the /usr/local/bin directory, which is already configured for access by the shell with the macOS default $PATH environment variable (the default is set by the /usr/libexec/path_helper command).
In order to install Homebrew, you need to install either the Xcode Command Line Tools (about 100 MB) or the full Xcode package (about 10 GB). In this tutorial, you will install Command Line Tools as they are a more reasonable size. Command Line Tools gives Mac users many commonly used tools, utilities, and compilers.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With