osx - brew install php bzip2 缺少
程序员文章站
2022-04-20 22:13:05
...
mac os x使用brew重新安装php55,总是提示bzip2缺少,需要重装,但系统中确实已经有了bzip2.
Last login: Sun May 17 12:48:12 on ttys001
bogon:~ ksoul$ brew list
aspell flex gmp libffi re2c
autoconf freetds icu4c libpng tidy-html5
bzip2 freetype imap-uw nginx unixodbc
curl gettext jpeg openssl wget
enchant glib lbzip2 pcre zlib
bogon:~ ksoul$ whereis bzip2
/usr/bin/bzip2
bogon:~ ksoul$ brew install php55 --with-cgi --with-debug --withgmp --with-imap --with-tidy
==> Installing php55 from josegonzalez/homebrew-php
==> Downloading https://www.php.net/get/php-5.5.25.tar.bz2/from/this/mirror
Already downloaded: /Library/Caches/Homebrew/php55-5.5.25
Warning: Backing up all known pear.conf and .pearrc files
Warning: If you have a pre-existing pear install outside
of homebrew-php, or you are using a non-standard
pear.conf location, installation may fail.
==> ./configure --prefix=/usr/local/Cellar/php55/5.5.25 --localstatedir=/usr/loc
checking for gzgets in -lz... yes
checking whether to enable bc style precision math functions... yes
checking for BZip2 support... yes
checking for BZip2 in default path... not found
configure: error: Please reinstall the BZip2 distribution
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
bogon:~ ksoul$
回复内容:
mac os x使用brew重新安装php55,总是提示bzip2缺少,需要重装,但系统中确实已经有了bzip2.
Last login: Sun May 17 12:48:12 on ttys001
bogon:~ ksoul$ brew list
aspell flex gmp libffi re2c
autoconf freetds icu4c libpng tidy-html5
bzip2 freetype imap-uw nginx unixodbc
curl gettext jpeg openssl wget
enchant glib lbzip2 pcre zlib
bogon:~ ksoul$ whereis bzip2
/usr/bin/bzip2
bogon:~ ksoul$ brew install php55 --with-cgi --with-debug --withgmp --with-imap --with-tidy
==> Installing php55 from josegonzalez/homebrew-php
==> Downloading https://www.php.net/get/php-5.5.25.tar.bz2/from/this/mirror
Already downloaded: /Library/Caches/Homebrew/php55-5.5.25
Warning: Backing up all known pear.conf and .pearrc files
Warning: If you have a pre-existing pear install outside
of homebrew-php, or you are using a non-standard
pear.conf location, installation may fail.
==> ./configure --prefix=/usr/local/Cellar/php55/5.5.25 --localstatedir=/usr/loc
checking for gzgets in -lz... yes
checking whether to enable bc style precision math functions... yes
checking for BZip2 support... yes
checking for BZip2 in default path... not found
configure: error: Please reinstall the BZip2 distribution
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
bogon:~ ksoul$
很可能没安装完全,开个VPN下载试试。
遇到同样的问题,求解答
试试:xcode-select --install
推荐阅读
-
homebrew - brew install php55出现问题
-
在 Mac OSX 上搭建 PHP 开发环境时遇到了异常(用 brew 安装 php 5.5 时) ?
-
OS X用brew install php56
-
homebrew - brew install php56-intl 装上了,但php并没有加载
-
OS X用brew install php56
-
mac brew install php55-pthreads 失败
-
linux - OS X用brew install php56-memcache/redis 安装成功,phpinfo却没有
-
osx - mac air os x brew php53安装失败
-
linux - OS X用brew install php56-memcache/redis 安装成功,phpinfo却没有
-
osx - mac air os x brew php53安装失败