Mac Home-brew Installing PHP failed

Source: Internet
Author: User
Tags apcu gmp imap intl mcrypt mssql snmp tidy
brew install php56 --with-fpm --with-gmp --with-imap --with-tidy --with-debug --with-mysql --with-libmysql --without-snmp

After doing this

==> installing php56 from homebrew/php==> downloading https://php.net/get/php-5.6.22.tar.bz2/from/this/ Mirroralready downloaded:/users/miaoyunpeng/library/caches/homebrew/php56-5.6.22==>./configure--prefix=/usr/ local/cellar/php56/5.6.22--localstatedir=/usr/local/var--sysconfdir=/usr/localast Lines From/users/miaoyunpeng /library/logs/homebrew/php56/01.configure:checking size of int ... (cached) 4checking size of short ... (cached) 2checking size of long ... (cached) 8checking for an ANSI c-conforming const ... Yeschecking whether Time.h and Sys/time.h may both be included ... yeschecking for working alloca.h ... (cached) yeschecking for alloca ... (cached) yeschecking for working memcmp ... yeschecking for stdarg.h ... (cached) yeschecking for MCrypt support ... nochecking for MSSQL support via FreeTDS ... nochecking for MySQL support ... yes Checking for specified location of the MySQL UNIX socket .../tmp/mysql.sockconfigure:error:cannot find MySQL header file S under/usr/local.Note that the MySQL client library isn't bundled anymore! READ This:https://git.io/brew-troubleshootingif Reporting this issue "do" at (not homebrew/brew): Https://github . Com/homebrew/homebrew-php/issuesthese open issues may also help:update PHP56-APCU.RB https://github.com/Homebrew/ Homebrew-php/pull/3242brew Install php56 https://github.com/Homebrew/homebrew-php/issues/2760Runtime error after Installing Php56-http https://github.com/Homebrew/homebrew-php/issues/3243Make Error php56 https://github.com/ Homebrew/homebrew-php/issues/1842php56 Required for composer https://github.com/Homebrew/homebrew-php/issues/ 2796failed to install php56-pthreads https://github.com/Homebrew/homebrew-php/issues/2768Can ' t install Php56-mcrypt Https://github.com/Homebrew/homebrew-php/issues/2452Every update of PHP56 force me to reinstall Php56-intl and Php56-mcrypt with--build-from-source https://github.com/Homebrew/homebrew-php/issues/2440Failed to install/ Reinstall Php56-http Https://github.com/homebrew/homebrew-php/issues/2711fails to Install Php56 with Imap Extensiton https://github.com/Homebrew/ Homebrew-php/issues/2703i can ' t find php56_pdo! https://github.com/Homebrew/homebrew-php/issues/2706 "Brew Upgrade" fails:php56 conflicting with Php70 when upgrading phpMyAdmin Https://github.com/Homebrew/homebrew-php/issues/2945Adds A new Php70-gearman formula that updates Php56-gearman Https://github.com/Homebrew/homebrew-php/pull/3120Why does WP-CLI formula try to install PHP56 if PHP70 is a Lready there? Https://github.com/Homebrew/homebrew-php/issues/3179PHP56 can ' t launch as root, with Nginx Internal Server Error? https://github.com/Homebrew/homebrew-php/issues/2709

Many of the packages have not been downloaded many times. Which God knows what this is?

Reply content:

brew install php56 --with-fpm --with-gmp --with-imap --with-tidy --with-debug --with-mysql --with-libmysql --without-snmp

After doing this

==> installing php56 from homebrew/php==> downloading https://php.net/get/php-5.6.22.tar.bz2/from/this/ Mirroralready downloaded:/users/miaoyunpeng/library/caches/homebrew/php56-5.6.22==>./configure--prefix=/usr/ local/cellar/php56/5.6.22--localstatedir=/usr/local/var--sysconfdir=/usr/localast Lines From/users/miaoyunpeng /library/logs/homebrew/php56/01.configure:checking size of int ... (cached) 4checking size of short ... (cached) 2checking size of long ... (cached) 8checking for an ANSI c-conforming const ... Yeschecking whether Time.h and Sys/time.h may both be included ... yeschecking for working alloca.h ... (cached) yeschecking for alloca ... (cached) yeschecking for working memcmp ... yeschecking for stdarg.h ... (cached) yeschecking for MCrypt support ... nochecking for MSSQL support via FreeTDS ... nochecking for MySQL support ... yes Checking for specified location of the MySQL UNIX socket .../tmp/mysql.sockconfigure:error:cannot find MySQL header file S under/usr/local.Note that the MySQL client library isn't bundled anymore! READ This:https://git.io/brew-troubleshootingif Reporting this issue "do" at (not homebrew/brew): Https://github . Com/homebrew/homebrew-php/issuesthese open issues may also help:update PHP56-APCU.RB https://github.com/Homebrew/ Homebrew-php/pull/3242brew Install php56 https://github.com/Homebrew/homebrew-php/issues/2760Runtime error after Installing Php56-http https://github.com/Homebrew/homebrew-php/issues/3243Make Error php56 https://github.com/ Homebrew/homebrew-php/issues/1842php56 Required for composer https://github.com/Homebrew/homebrew-php/issues/ 2796failed to install php56-pthreads https://github.com/Homebrew/homebrew-php/issues/2768Can ' t install Php56-mcrypt Https://github.com/Homebrew/homebrew-php/issues/2452Every update of PHP56 force me to reinstall Php56-intl and Php56-mcrypt with--build-from-source https://github.com/Homebrew/homebrew-php/issues/2440Failed to install/ Reinstall Php56-http Https://github.com/homebrew/homebrew-php/issues/2711fails to Install Php56 with Imap Extensiton https://github.com/Homebrew/ Homebrew-php/issues/2703i can ' t find php56_pdo! https://github.com/Homebrew/homebrew-php/issues/2706 "Brew Upgrade" fails:php56 conflicting with Php70 when upgrading phpMyAdmin Https://github.com/Homebrew/homebrew-php/issues/2945Adds A new Php70-gearman formula that updates Php56-gearman Https://github.com/Homebrew/homebrew-php/pull/3120Why does WP-CLI formula try to install PHP56 if PHP70 is a Lready there? Https://github.com/Homebrew/homebrew-php/issues/3179PHP56 can ' t launch as root, with Nginx Internal Server Error? https://github.com/Homebrew/homebrew-php/issues/2709

Many of the packages have not been downloaded many times. Which God knows what this is?

Mac Pro comes with a php5.5 environment
But I really want to install the proposal to uninstall the first.
As for homebrew installation, can be turned over the wall to download, or modify the host file (sudo vi/etc/host), the host file can be Baidu search, there is a call Laod website has been maintaining the update

With the tape, --with-mysql but not the MySQL installation.

configure: error: Cannot find MySQL header files under /usr/local.Note that the MySQL client library is not bundled anymore!

The solution is to install MySQL first.

  • Related Article

    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.