Homebrew is being updated, but I need to worry about “failed to bind” + “delete path”?

I used homebrew to successfully install the rvm and ocaml packages, but I always wondered about the errors at the end of the $ brew update output. For example, when I started it just now, the output of bash was:

 Error: Could not link: /usr/local/etc/bash_completion.d/brew Please delete these paths and run `brew update`. Error: Could not link: /usr/local/share/doc/homebrew Please delete these paths and run `brew update`. Error: Could not link: /usr/local/share/zsh/site-functions/_brew Please delete these paths and run `brew update`. Error: Could not link: /usr/local/share/man/man1/brew-cask.1 /usr/local/share/man/man1/brew.1 

My colleagues say that you should not worry about it, but ... I'm worried about it. What can I do to fix them? Just run rm and completely destroy the "delete me" and mkdir paths that cannot be linked?

+7
unix bash homebrew
source share
3 answers

All of these files are just a symbolic link, so don’t worry, just delete them.

If you want to make sure that they are symbolic links, you can run this.

 file -h <what you want to inspect> 
+8
source share

rm -rf FILE_NAME

In your case, it should be as follows

rm -rf / usr / local / etc / bash_completion.d / brew

rm -rf / usr / local / share / doc / homebrew

rm -rf / usr / local / share / zsh / site-functions / _brew etc.

0
source share

This worked for me:

 ../usr/local/..$rm -rf /usr/local/share/doc/homebrew 

and then

 ../usr/local/..$brew upgrade 
0
source share

All Articles