What should I do to fix homebrew?

I installed apache-spark 1.6.1 lately and then I uninstalled it and update homebrew to install apache-spark 2.0.0. However, When I run brew doctor I don't get any helpful diagnostics about what is wrong:

Error: No such file or directory - /usr/local/Cellar/apache-spark/1.6.1

What should I do now? The version of my os is 10.11.6.


Solution 1:

You have broken links. Homebrew has built in repair utility.
brew doctor

After brew finishes the doctor utility, run prune to update & fix homebrew's sym links.
brew prune