Skip to content

Instantly share code, notes, and snippets.

@jensgro
Created June 22, 2017 07:42
Show Gist options
  • Save jensgro/cb253515ae832949ce024e5aa6f40232 to your computer and use it in GitHub Desktop.
Save jensgro/cb253515ae832949ce024e5aa6f40232 to your computer and use it in GitHub Desktop.
Installing PHP via Homebrew

I tried to install or update PHP via Homebrew on my Mac. But all I got were error messages that I don't understand.

One solution to the problem could be to delete josegonzalez/php/php56 as it causes problems. But how? Just delete the folder?

And after all: I want to add the path to this PHP-version to my PATH-variable. What would be the correct path or how can I retrieve it via the terminal?

# JensGrochtdreis @ Idefix in ~ [9:37:11]
$ brew install php56
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 3 taps (homebrew/core, homebrew/php, josegonzalez/php).
No changes to formulae.
Error: Formulae found in multiple taps:
* homebrew/php/php56
* josegonzalez/php/php56
Please use the fully-qualified name e.g. homebrew/php/php56 to refer the formula.
# JensGrochtdreis @ Idefix in ~ [9:37:32] C:1
$ brew install homebrew/php/php56
==> Installing php56 from homebrew/php
Error: Formulae found in multiple taps:
* homebrew/php/php53
* josegonzalez/php/php53
Please use the fully-qualified name e.g. homebrew/php/php53 to refer the formula.
@jensgro
Copy link
Author

jensgro commented Jun 22, 2017

The solution to the problem was untapping the PHP-versions from josegonzalez, uninstalling all PHP-versions and installing one version again. Now everything works as intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment