If you’re using

brew doctor

and getting errors such as

Error: Formula bash-completion2 will not import. Error: Formula gnutls3 will not import. Error: Formula mysql51 will not import. Error: Formula node06 will not import. Error: Formula ruby192 will not import.

It means that brew cannot find the formulas so you’ll want to remove the link using the code (replace the filename with the name of the formula.

rm `brew --prefix`/Library/Formula/FAILINGFORMULANAME.rb

You can see my process for clearing them out below.

~$ brew doctor Error: Formula bash-completion2 will not import. Error: Formula gnutls3 will not import. Error: Formula mysql51 will not import. Error: Formula node06 will not import. Error: Formula ruby192 will not import. ~$ rm `brew --prefix`/Library/Formula/gnutls3.rb ~$ brew doctor Error: Formula bash-completion2 will not import. Error: Formula mysql51 will not import. Error: Formula node06 will not import. Error: Formula ruby192 will not import. ~$ rm `brew --prefix`/Library/Formula/mysql51.rb ~$ rm `brew --prefix`/Library/Formula/node06.rb ~$ brew doctor Error: Formula bash-completion2 will not import. Error: Formula ruby192 will not import. ~$ rm `brew --prefix`/Library/Formula/ruby192.rb ~$ rm `brew --prefix`/Library/Formula/bash-completion2.rb ~$ brew doctor Your system is raring to brew. ~$