How do you fix this?

$ brew doctor
Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built.


Like this, for each unlinked keg:

brew link imagemagick
| improve this answer | |
  • 6
    What if I have removed those 'kegs' previously? Why are they still there? I don't want to 'link' them again, I want to get rid of them. – Peter Štibraný Jan 8 '13 at 21:30
  • 8
    brew cleanup will get rid of unused stuff – Adam Nelson Oct 25 '13 at 9:25

i ran below command and the problem is gone...

"brew upgrade"

| improve this answer | |
  • That worked for me too, good catch. – dsomnus Oct 20 '17 at 14:40
brew link --overwrite imagemagick

repeat it for each and it will solve the issue

| improve this answer | |

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .