Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Can't install any version of PHP with Homebrew on Mac OS X 9.2 #1137
I had PHP version 5.4 installed via homebrew but when I ran brew install php55 it caused serious issues.
I tried everything like brew update, brew upgrade, brew doctor, brew tap --repair. I re-installed Xcode and the Command Line Tools and eventually I had to revert to the original version of PHP that comes with a Mac and also install Mcrypt manually using this tutorial - http://coolestguidesontheplanet.com/install-mcrypt-php-mac-osx-10-9-mavericks-development-server/
So when I type brew --config, brew doctor I get the following - https://gist.github.com/colinmurphy/d4b8f0046cff2a99d653
As far as I can tell its a compiling issue and any help would be great. The warnings for brew doctor come from the fact I have manually installed mcrypt.
referenced this issue
May 5, 2014
Thanks @lucasmichot and @pitpit for your help. Apologies for the delay in getting back.
I also tried uninstalling homebrew and re installing homebrew and no luck and also tried re installing command line tools and Xcode. I am unsure on what else I can try.
I have now resolved the issue.
After uninstalling and reinstalling the homebrew when I typed brew doctor I got the following error:
"Warning: You have an outdated version of /usr/bin/install_name_tool installed.
So after some searching I came to this ticket - Homebrew/legacy-homebrew#26544 which someone said that when you update Xcode and the command line tools the file "install_name_tool" was not being updated.
So you could either re-install OSX or get the file from a backup. As I did not have a backup or did not want to re-install OSX I asked a colleague if he could give me his file as he was running homebrew on MAC OSX 10.9.3. .
So once I removed and replaced the file it worked :).
I hope this helps anyone with the same issue and if someone wants my install_name_tool please get in contact and I will email you on the file.
I wrote a blog on how I fixed the issue here - http://www.colinfmurphy.com/how-i-fixed-homebrew-php-complier-error-with-mac-osx-10-9-update/ I hope this will help someone who ran into the same problems as I did.