您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

mac home-brew 安装 php 失败

2025/9/8 14:31:44发布16次查看
brew install php56 --with-fpm --with-gmp --with-imap --with-tidy --with-debug --with-mysql --with-libmysql --without-snmp

执行这个以后
==> 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/2706brew 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

好多包下载不下来 已经好多次了。哪位大神知道这个是为啥嘛
回复内容: brew install php56 --with-fpm --with-gmp --with-imap --with-tidy --with-debug --with-mysql --with-libmysql --without-snmp

执行这个以后
==> 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/2706brew 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

好多包下载不下来 已经好多次了。哪位大神知道这个是为啥嘛
mac pro 就自带了php5.5环境
不过实在想安装建议先卸载自带的。
至于homebrew安装,可以翻墙下载,或者修改host文件(sudo vi /etc/host);host 文件可以百度搜索一下,有一个叫laod网站一直在维护更新
带上--with-mysql但没安装mysql造成的
configure: error: cannot find mysql header files under /usr/local.note that the mysql client library is not bundled anymore!
解决方法就是先装上mysql
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product