➜~ git: (master) ✗brew install php56==> installing php56 from Homebrew/ho mebrew-php==> downloading Https://www.php.net/get/php-5.6.4.tar.bz2/from/this/mirrorAlready downloaded:/ Library/caches/homebrew/php56-5.6.4warning:backing up all known pear.conf and. PEARRC Fileswarning:if we have a Pre-exi Sting pear Install outside of homebrew-php, or you is using a non-standard pear.conf location, Installati On May fail.==>/configure--prefix=/usr/local/cellar/php56/5.6.4--localstatedir=/usr/loca==> make/private/ Tmp/php56-uhxcte/php-5.6.4/sapi/apache2handler/sapi_apache2.c:41:10:fatal error: ' ap_config.h ' File not found# Include "Ap_config.h" ^1 error generated.make: * * * [Sapi/apache2handler/sapi_apache2.lo] Error 1READ this:http:// Git.io/brew-troubleshootingif reporting this issue "do" at (not homebrew/homebrew): https://github.com/homebrew/ Homebrew-php/issues
And then https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Troubleshooting.md#troubleshooting the information. , the problem cannot be solved
**➜ ~ git:(master) ✗ brew doctorYour system is ready to brew.**
Homebrew didn't find the problem by running brew Doctor Self test
➜ ~ git:(master) ✗ brew gist-logsusage: brew gist-logs [--new-issue|-n]
➜ ~ git:(master) ✗ brew gist-logs https://github.com/Homebrew/homebrew-apache.git
Then suspect that the problem is Apache, directly through the ' Homebrew-apache attempt to download, invalid
######################################################################## 100.0%error:/Library/Caches/Homebrew/ Formula/homebrew-apache.git:5: syntax error, unexpected ' < '^/library/caches/homebrew/formula/homebrew-apache.git:6: syntax error, unexpected ' < '^/library/caches/homebrew/formula/homebrew-apache.git:6: syntax error, unexpected Keyword_class, expecting End-of-input^please report this bug:http://git.io/brew-troubleshooting/usr/local/library/homebrew/formulary.rb:92:in ' Module_ Eval '/usr/local/library/homebrew/formulary.rb:92:in ' load_file '/usr/local/library/homebrew/formulary.rb:151:in ' Load_file '/usr/local/library/homebrew/formulary.rb:82:in ' Klass '/usr/local/library/homebrew/formulary.rb:71:in ' Get_formula '/usr/local/library/homebrew/formulary.rb:200:in ' factory '/usr/local/library/homebrew/extend/argv.rb : 16:in ' block in formulae '/usr/local/library/homebrew/extend/argv.rb:16:in ' map '/usr/local/library/homebrew/extend /argv.rb:16:in ' formulae '/usr/local/library/homebrew/cmd/gist-logs.rb:127:in ' gist_logs '/usr/local/Library/ Brew.rb:135:in '
' ➜~ git: (master) ✗
➜ ~ git:(master) ✗ sudo apachectl -vPassword:Server version: Apache/2.4.9 (Unix)Server built: Sep 9 2014 14:48:20➜ ~ git:(master) ✗
Looking for Apache, it looks fine. I don't know where the problem is.
Resources
Reference 2error freetype.h not found installing PHP53 #885
Reply content:
➜~ git: (master) ✗brew install php56==> installing php56 from Homebrew/ho mebrew-php==> downloading Https://www.php.net/get/php-5.6.4.tar.bz2/from/this/mirrorAlready downloaded:/ Library/caches/homebrew/php56-5.6.4warning:backing up all known pear.conf and. PEARRC Fileswarning:if we have a Pre-exi Sting pear Install outside of homebrew-php, or you is using a non-standard pear.conf location, Installati On May fail.==>/configure--prefix=/usr/local/cellar/php56/5.6.4--localstatedir=/usr/loca==> make/private/ Tmp/php56-uhxcte/php-5.6.4/sapi/apache2handler/sapi_apache2.c:41:10:fatal error: ' ap_config.h ' File not found# Include "Ap_config.h" ^1 error generated.make: * * * [Sapi/apache2handler/sapi_apache2.lo] Error 1READ this:http:// Git.io/brew-troubleshootingif reporting this issue "do" at (not homebrew/homebrew): https://github.com/homebrew/ Homebrew-php/issues
And then https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Troubleshooting.md#troubleshooting the information. , the problem cannot be solved
**➜ ~ git:(master) ✗ brew doctorYour system is ready to brew.**
Homebrew didn't find the problem by running brew Doctor Self test
➜ ~ git:(master) ✗ brew gist-logsusage: brew gist-logs [--new-issue|-n]
➜ ~ git:(master) ✗ brew gist-logs https://github.com/Homebrew/homebrew-apache.git
Then suspect that the problem is Apache, directly through the ' Homebrew-apache attempt to download, invalid
######################################################################## 100.0%error:/Library/Caches/Homebrew/ Formula/homebrew-apache.git:5: syntax error, unexpected ' < '^/library/caches/homebrew/formula/homebrew-apache.git:6: syntax error, unexpected ' < '^/library/caches/homebrew/formula/homebrew-apache.git:6: syntax error, unexpected Keyword_class, expecting End-of-input^please report this bug:http://git.io/brew-troubleshooting/usr/local/library/homebrew/formulary.rb:92:in ' Module_ Eval '/usr/local/library/homebrew/formulary.rb:92:in ' load_file '/usr/local/library/homebrew/formulary.rb:151:in ' Load_file '/usr/local/library/homebrew/formulary.rb:82:in ' Klass '/usr/local/library/homebrew/formulary.rb:71:in ' Get_formula '/usr/local/library/homebrew/formulary.rb:200:in ' factory '/usr/local/library/homebrew/extend/argv.rb : 16:in ' block in formulae '/usr/local/library/homebrew/extend/argv.rb:16:in ' map '/usr/local/library/homebrew/extend /argv.rb:16:in ' formulae '/usr/local/library/homebrew/cmd/gist-logs.rb:127:in ' gist_logs '/usr/local/Library/ Brew.rb:135:in '
' ➜~ git: (master) ✗
➜ ~ git:(master) ✗ sudo apachectl -vPassword:Server version: Apache/2.4.9 (Unix)Server built: Sep 9 2014 14:48:20➜ ~ git:(master) ✗
Looking for Apache, it looks fine. I don't know where the problem is.
Resources
Reference 2error freetype.h not found installing PHP53 #885
Recommended Phpbrew
or a command under homebrew.