Brew Installation Error: Appears main brew already installed

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$ 

Hi guys, I had problems with my brew when I tried to install ffmpeg. I think I did an immature thing (note - after several hours of trying) to remove brew (through some article that I read online) and try to reinstall it. But the above output comes in my terminal when I try to install brew again. How can I say that Homebrew is already installed when it is clear that the Cellar file is missing?

+4
source share
3 answers

I had the same problem. There was no directory named., / Usr / local / Cellar, but brew found that it was already installed.

I solved the problem by doing the following.

Step 1: Run

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

(An error was reported and did not succeed., But I believe he did the cleanup)

Step 2: to be from the Windows world., Restart the terminal

Step 3: Run Again

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

It worked successfully.,

+14
source

Plain

 sudo rm -rf /usr/local/.git 

fixed my problem and i could reinstall brew

+7
source

I tried this solution, but running โ€œbrew cleanupโ€ when the system does not detect brew is not possible XD

I came up with a possible solution ... I tried to install MacPort and it also did not install well, but it seems to have uninstalled brew somehow, so I could reinstall it from scratch

And this time it will work! So maybe this helps someone!

PS: I think my initial problem was that I had a problem connecting to the Internet when I first installed brew and did not install well

0
source

Source: https://habr.com/ru/post/1499990/


All Articles