Machome-brew failed to install php

Source: Internet
Author: User
Tags apcu gmp intl tidy
{Code...} after executing this operation {code...} many packages cannot be downloaded many times. Who knows why?
brew install php56 --with-fpm --with-gmp --with-imap --with-tidy --with-debug --with-mysql --with-libmysql --without-snmp

After this operation

==> 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 15 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... yeschecking for specified location of the MySQL UNIX socket... /tmp/mysql.sockconfigure: error: Cannot find MySQL header files under /usr/local.Note that the MySQL client library is not bundled anymore!READ THIS: https://git.io/brew-troubleshootingIf reporting this issue please do so 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 already there? https://github.com/Homebrew/homebrew-php/issues/3179PHP56 can't launch as root, with nginx 500 Internal Server Error? https://github.com/Homebrew/homebrew-php/issues/2709

Many packages cannot be downloaded many times. Who knows why?

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

After this operation

==> 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 15 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... yeschecking for specified location of the MySQL UNIX socket... /tmp/mysql.sockconfigure: error: Cannot find MySQL header files under /usr/local.Note that the MySQL client library is not bundled anymore!READ THIS: https://git.io/brew-troubleshootingIf reporting this issue please do so 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 already there? https://github.com/Homebrew/homebrew-php/issues/3179PHP56 can't launch as root, with nginx 500 Internal Server Error? https://github.com/Homebrew/homebrew-php/issues/2709

Many packages cannot be downloaded many times. Who knows why?

Mac Pro comes with the php5.5 environment
However, we recommend that you uninstall the package first.
For homebrew installation, you can download it over the wall or modify the host file (sudo vi/etc/host). For the host file, you can search for it by Baidu. a website named laod has been maintaining updates.

Attach--with-mysqlHowever, mysql is not installed.

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.

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.