3

Every time I open terminal on my mac, I get the following message from homebrew:

Error: No available formula with the name "homebrew/php/php70" Please tap it and then try again: brew tap homebrew/php

I have looked through a few different ways to resolve this outdated formula issue but nothing has worked. Is there a way to at least suppress this error message, as I think I have installed the correct php version, obviating the need to fix this

  • Try brew doctor to troubleshoot. – McNight May 12 '18 at 21:15
  • 1
    I tried that, but can't find anything related to PHP in the output – Alex Nagel May 15 '18 at 16:37
5

I'm using ZSH and I had the same problem. Every time I open a new terminal I had:

Error: No available formula with the name "homebrew/php/php70"
Please tap it and then try again: brew tap homebrew/php

In my ~/.zshrc I had this line:

export PATH="$(brew --prefix homebrew/php/php70)/bin:$PATH"

I removed that, since it is no more used and I have no more that warning message.

1

Somehow you might still have a reference to the old path in your .bash_profile or equivalent. When the line is removed, the message disappears.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.