PHP安装编译错误及解决办法
生活随笔
收集整理的這篇文章主要介紹了
PHP安装编译错误及解决办法
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
今天搭建LAMP環境是編譯PHP時出現的錯誤匯總。
?
錯誤:
configure:?error:?xml2-config?not?found.?Please?check?your?libxml2?installation.解決辦法:
yum?install?-y?libxml2-devel錯誤:
configure:?error:?Cannot?find?OpenSSL's?<evp.h>解決辦法:
yum?install?-y?openssl?openssl-devel錯誤:
checking?for?BZip2?in?default?path...?not?found configure:?error:?Please?reinstall?the?BZip2?distribution解決辦法:
yum?install?-y?bzip2?bzip2-devel錯誤:
configure:?error:?png.h?not?found.解決辦法:
yum?install?-y?libpng?libpng-devel錯誤:
configure:?error:?freetype.h?not?found.解決辦法:
yum?install?-y?freetype?freetype-devel錯誤:
configure:?error:?mcrypt.h?not?found.?Please?reinstall?libmcrypt.解決辦法:
rpm?-ivh?"http://www.aminglinux.com/bbs/data/p_w_upload/forum/month_1211/epel-release-6-7.noarch.rpm" yum?install?-y??libmcrypt-devel錯誤:
configure:?error:?jpeglib.h?not?found.解決辦法:
yum?install?libjpeg-devel錯誤:
configure:?error:?png.h?not?found.解決辦法:
yum?install?libpng-devel錯誤:
configure:?error:?Cannot?find?MySQL?header?files?under?/usr/local/mysql. Note?that?the?MySQL?client?library?is?not?bundled?anymore!解決辦法:
轉載于:https://blog.51cto.com/chensenlin/1759868
總結
以上是生活随笔為你收集整理的PHP安装编译错误及解决办法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 使用secureCRT连接VMware-
- 下一篇: Spring创建对象的三种方式以及创建时