本文地址http://comexchan.cnblogs.com/,作者Comex Chan,尊重知識產權,轉載請注明出處,謝謝!
今天在CentOS6.5下編譯安裝PHP時,一直報錯
configure: error: ZLIB extension requires gzgets in zlib
而Zlib確定已經安裝了。
使用Google根本搜索不到有關的錯誤。
嘗試重新編譯了Zlib,還是不行。
后面發現我的PHP編譯選項里面有個
--with-libdir=lib64 \
刪除之,再試下。
完美解決!
最后總算打印出來了
Thank you for using PHP.