我首先尝试安装josegonzalez / homebrew-php。它在zlib安装时失败了。然后我尝试安装zlib,它以同样的方式失败了。以下是错误。任何帮助将不胜感激。
Indatuss-MacBook-Pro-7% brew install zlib
==> Downloading http://zlib.net/zlib-1.2.8.tar.gz
Already downloaded: /Library/Caches/Homebrew/zlib-1.2.8.tar.gz
==> Patching
patching file configure
==> ./configure --prefix=/usr/local/Cellar/zlib/1.2.8
==> make install
make: *** [inflate.o] Error 1
1 error generated.
make: *** [trees.o] Error 1
1 error generated.
make: *** [deflate.o] Error 1
不确定导致此错误的原因,或者更不用说如何修复它。
答案 0 :(得分:9)
试试这个
brew tap homebrew / dupes
brew install zlib
brew list zlib