osx - brew install php bzip2 缺少

來源:互聯網
上載者:User
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

  • 相關文章

    聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.