mac os x使用brew重新安裝php55,總是提示bzip2缺少,需要重裝,但系統中確實已經有了bzip2.
Last login: Sun May 17 12:48:12 on ttys001bogon:~ ksoul$ brew listaspell flex gmp libffi re2cautoconf freetds icu4c libpng tidy-html5bzip2 freetype imap-uw nginx unixodbccurl gettext jpeg openssl wgetenchant glib lbzip2 pcre zlibbogon:~ ksoul$ whereis bzip2/usr/bin/bzip2bogon:~ 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/mirrorAlready downloaded: /Library/Caches/Homebrew/php55-5.5.25Warning: Backing up all known pear.conf and .pearrc filesWarning: 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/locchecking for gzgets in -lz... yeschecking whether to enable bc style precision math functions... yeschecking for BZip2 support... yeschecking for BZip2 in default path... not foundconfigure: error: Please reinstall the BZip2 distributionREAD THIS: https://git.io/brew-troubleshootingIf reporting this issue please do so at (not Homebrew/homebrew): https://github.com/josegonzalez/homebrew-php/issuesbogon:~ ksoul$
回複內容:
mac os x使用brew重新安裝php55,總是提示bzip2缺少,需要重裝,但系統中確實已經有了bzip2.
Last login: Sun May 17 12:48:12 on ttys001bogon:~ ksoul$ brew listaspell flex gmp libffi re2cautoconf freetds icu4c libpng tidy-html5bzip2 freetype imap-uw nginx unixodbccurl gettext jpeg openssl wgetenchant glib lbzip2 pcre zlibbogon:~ ksoul$ whereis bzip2/usr/bin/bzip2bogon:~ 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/mirrorAlready downloaded: /Library/Caches/Homebrew/php55-5.5.25Warning: Backing up all known pear.conf and .pearrc filesWarning: 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/locchecking for gzgets in -lz... yeschecking whether to enable bc style precision math functions... yeschecking for BZip2 support... yeschecking for BZip2 in default path... not foundconfigure: error: Please reinstall the BZip2 distributionREAD THIS: https://git.io/brew-troubleshootingIf reporting this issue please do so at (not Homebrew/homebrew): https://github.com/josegonzalez/homebrew-php/issuesbogon:~ ksoul$
很可能沒安裝完全,開個VPN下載試試。
遇到同樣的問題,求解答
試試:xcode-select --install