mac brew php55,mac brew install php55-pthreads 失败

brew install php55-pthreads

==> Installing php55-pthreads from josegonzalez/homebrew-php

==> Installing dependencies for josegonzalez/php/php55-pthreads: php55

==> Installing josegonzalez/php/php55-pthreads dependency: php55

==> Downloading https://php.net/get/php-5.5.30.tar.bz2/from/this/mirror

Already downloaded: /Library/Caches/Homebrew/php55-5.5.30

==> ./configure --prefix=/usr/local/Cellar/php55/5.5.30 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc/php/5.5 --with-config-file-path=/usr

Last 15 lines from /Users/xcvu/Library/Logs/Homebrew/php55/01.configure:

checking for Kerberos support... /usr

checking for krb5-config... /usr/bin/krb5-config

checking for DSA_get_default_method in -lssl... no

checking for X509_free in -lcrypto... yes

checking for RAND_egd... no

checking for pkg-config... no

checking for OpenSSL version... >= 0.9.6

checking for CRYPTO_free in -lcrypto... yes

checking for SSL_CTX_set_ssl_version in -lssl... yes

checking for PCRE library to use... bundled

checking whether to enable the SQLite3 extension... yes

checking bundled sqlite3 library... yes

checking for ZLIB support... yes

checking if the location of ZLIB install directory is defined... no

configure: error: Cannot find libz

READ THIS: https://git.io/brew-troubleshooting

If reporting this issue please do so at (not Homebrew/homebrew):

https://github.com/josegonzalez/homebrew-php/issues

以上是执行过程

根据报错:configure: error: Cannot find libz

检查zlib也是安装了,不是很清楚还为何报错

补充php55,apache24,mysql等都是brew安装的

回复内容:

brew install php55-pthreads

==> Installing php55-pthreads from josegonzalez/homebrew-php

==> Installing dependencies for josegonzalez/php/php55-pthreads: php55

==> Installing josegonzalez/php/php55-pthreads dependency: php55

==> Downloading https://php.net/get/php-5.5.30.tar.bz2/from/this/mirror

Already downloaded: /Library/Caches/Homebrew/php55-5.5.30

==> ./configure --prefix=/usr/local/Cellar/php55/5.5.30 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc/php/5.5 --with-config-file-path=/usr

Last 15 lines from /Users/xcvu/Library/Logs/Homebrew/php55/01.configure:

checking for Kerberos support... /usr

checking for krb5-config... /usr/bin/krb5-config

checking for DSA_get_default_method in -lssl... no

checking for X509_free in -lcrypto... yes

checking for RAND_egd... no

checking for pkg-config... no

checking for OpenSSL version... >= 0.9.6

checking for CRYPTO_free in -lcrypto... yes

checking for SSL_CTX_set_ssl_version in -lssl... yes

checking for PCRE library to use... bundled

checking whether to enable the SQLite3 extension... yes

checking bundled sqlite3 library... yes

checking for ZLIB support... yes

checking if the location of ZLIB install directory is defined... no

configure: error: Cannot find libz

READ THIS: https://git.io/brew-troubleshooting

If reporting this issue please do so at (not Homebrew/homebrew):

https://github.com/josegonzalez/homebrew-php/issues

以上是执行过程

根据报错:configure: error: Cannot find libz

检查zlib也是安装了,不是很清楚还为何报错

补充php55,apache24,mysql等都是brew安装的

xcode-select --install 安装命令行工具后再试

本文原创发布php中文网,转载请注明出处,感谢您的尊重!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值