How can I fix "Error: Formulae found in multiple taps"?

I want to install php54-redis.

Yu:nginx Yu$ brew install josegonzalez/php/php54-redis

==> Installing php54-redis from josegonzalez/homebrew-php

Error: Formulae found in multiple taps:

  • homebrew/php/php54

  • josegonzalez/php/php54

Please use the fully-qualified name e.g. homebrew/php/php54 to refer the formula.

What am I doing wrong and how is thise done properly?


Solution 1:

brew untap josegonzalez/homebrew-php

This is same problem.

josegonzalez/homebrew-php has been moved to homebrew/php, so we can untap it to fix error.

Solution 2:

Referencing this GitHub issue link, you need to do the following with the tap that you don't want. In this case, if you don't want the homebrew/php/php54 tap, try this:

brew untap homebrew/php
brew tap --repair
brew update

I just tried it in on the other tap (brew untap josegonzalez/php) and it worked well.