Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Homebrew up-to-date, but do I need to worry about `could not link` + `delete path` errors?

I've used homebrew to install rvm and ocaml packages successfully, but I've always wondered about the errors at the end of $ brew update output. For example, when I ran it just now the bash output 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 not to worry about it, but... I worry about it. What can I do to fix them? Just run rm and completely obliterate the "delete me" paths, and mkdir the paths that cannot be linked?

like image 765
Kalanos Avatar asked Jan 27 '17 02:01

Kalanos


2 Answers

All the specified files are just symlinks, so don't worry, just remove them.

To make sure that they are symlinks, you can run this:

file -h <what you want to inspect>
like image 128
equal-l2 Avatar answered Oct 23 '22 17:10

equal-l2


This worked for me:

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

and then

../usr/local/..$brew upgrade
like image 23
Atul Kaushik Avatar answered Oct 23 '22 16:10

Atul Kaushik