Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing PHP53 or PHP54 from homebrew-php

With this command

$ brew install josegonzalez/php/composer

I get this message

Missing PHP53 or PHP54 from homebrew-php. Please install one or the other before continuing
Error: An unsatisfied requirement failed this build.

I have MacOsX 10.7 with MAMP. Can someone help me?

like image 795
sensorario Avatar asked Mar 03 '13 11:03

sensorario


3 Answers

If you have already php installed, you can ignore the dependencies by --ignore-dependencies parameter in example:

brew install composer --ignore-dependencies

Or if you don't have php, you'll have to install first via:

brew install php55
like image 94
kenorb Avatar answered Nov 14 '22 03:11

kenorb


I use OSX 10.9 and use XAMPP.

I also have this problem.

But I use brew install php, and then install composer successfully.

brew install php54

update

or

brew install php55
like image 27
lighter Avatar answered Nov 14 '22 01:11

lighter


Are you seeing this warning?

Warning: No developer tools installed.
Install the Command Line Tools: xcode-select --install

If so, it might fix your issue:

xcode-select --install
brew install php55
brew install composer

It worked for me. Warning, the xcode-select install takes a long time.

like image 4
blackwood Avatar answered Nov 14 '22 01:11

blackwood