An error occurred while installing PHP56 using homebrew in osx-Macosx.

Source: Internet
Author: User
Tags sapi
{Code...} Then I checked the information on github. Examples. md # troubleshooting and couldn't solve the problem {code...}. By running brewdoctor self-check, homebrew didn't find any questions...
➜  ~ git:(master) ✗ brew install php56==> Installing php56 from homebrew/homebrew-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 you have a pre-existing pear install outside         of homebrew-php, or you are using a non-standard         pear.conf location, installation 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 please do so at (not Homebrew/homebrew):  https://github.com/homebrew/homebrew-php/issues

Then I checked the information on the https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Troubleshooting.md#troubleshooting and couldn't solve the problem.

**➜  ~ git:(master) ✗ brew doctorYour system is ready to brew.**

Homebrew does not find any problems by running brew doctor self-check.

➜  ~ git:(master) ✗ brew gist-logsusage: brew gist-logs [--new-issue|-n] 
  
   ➜  ~ git:(master) ✗ brew gist-logs https://github.com/Homebrew/homebrew-apache.git
  

Then we suspect that there is a problem with apache and try to download it directly through 'homebrew-apache, which is 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) ✗

After querying Apache, it looks okay. I really don't know where the problem is.

References

2 error freetype. h not found installing php53 #885

Reply content:
➜  ~ git:(master) ✗ brew install php56==> Installing php56 from homebrew/homebrew-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 you have a pre-existing pear install outside         of homebrew-php, or you are using a non-standard         pear.conf location, installation 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 please do so at (not Homebrew/homebrew):  https://github.com/homebrew/homebrew-php/issues

Then I checked the information on the https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Troubleshooting.md#troubleshooting and couldn't solve the problem.

**➜  ~ git:(master) ✗ brew doctorYour system is ready to brew.**

Homebrew does not find any problems by running brew doctor self-check.

➜  ~ git:(master) ✗ brew gist-logsusage: brew gist-logs [--new-issue|-n] 
  
   ➜  ~ git:(master) ✗ brew gist-logs https://github.com/Homebrew/homebrew-apache.git
  

Then we suspect that there is a problem with apache and try to download it directly through 'homebrew-apache, which is 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) ✗

After querying Apache, it looks okay. I really don't know where the problem is.

References

2 error freetype. h not found installing php53 #885

Recommended PHPBrew

Still use the command under homebrew

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.