brew installation error : Appears homebrew is alre

2019-06-26 02:26发布

unknown7cd1c37eb7ca:local shoaibali$ ruby -e "$(curl -fsSL   https://raw.github.com/mxcl/homebrew/go)"
-e:67: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
-e:96: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
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
unknown7cd1c37eb7ca:local shoaibali$ ls
CONTRIBUTING.md     foreman         hw_mp_userdata
Library         git         libexec
PortDetect.log      heroku          opt
bin         hw_mobile_userdata  share
unknown7cd1c37eb7ca:local shoaibali$

Hey guys, I was having some problems with my brew when I was trying to install ffmpeg. I think I did the immature thing (note - after hours of trying) of uninstalling brew (through some article i read online) and trying to reinstall it. But the above output comes in my terminal when I try to install brew again. How can it say Homebrew is already installed when clearly the Cellar file isn't there ?

标签: homebrew
3条回答
放荡不羁爱自由
2楼-- · 2019-06-26 02:36

I tried this solution but running "brew cleanup" when the system doesn't detect brew is not possible XD

I came up with a possible solution... I've tried to install MacPort and also didn't installed well, but it seems to uninstall (somehow) brew, so I could reinstall it from scratch

And this time it works! So, maybe it helps somebody!

PS: I think my original problem was that I had internet connection problem when I installed Brew for the first time, and didn't installed well

查看更多
Anthone
3楼-- · 2019-06-26 02:55

A simple

sudo rm -rf /usr/local/.git

fixed my problem and I could re-install brew

查看更多
唯我独甜
4楼-- · 2019-06-26 03:01

I had the same issue. There was no directory called., /usr/local/Cellar but brew installation kept reporting it is already installed.

I resolved the issue by doing the following.,

Step 1 : run

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

(It reported error and didn't run successfully., but I believe it did cleanup)

Step 2 : Being from Windows world., restarted the terminal

Step 3 : Ran again

 ruby -e "$(curl -fsSL   https://raw.github.com/mxcl/homebrew/go)"

It ran successfully.,

查看更多
登录 后发表回答