brew Error: Formula will not import.

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.
~$ 

About Nick

Melbourne based web developer that loves building front-end systems with anything from vanilla JS to React. Infosec student and active learner. Subscribe to the blog

www ·

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.