mac brew install php55-pthreads 失败

WBOY
發布: 2016-06-06 20:25:11
原創
1558 人瀏覽過

<code>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</code>
登入後複製
登入後複製

以上是执行过程

根据报错:configure: error: Cannot find libz
检查zlib也是安装了,不是很清楚还为何报错

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

回复内容:

<code>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</code>
登入後複製
登入後複製

以上是执行过程

根据报错:configure: error: Cannot find libz
检查zlib也是安装了,不是很清楚还为何报错

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

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

相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板