php常見錯誤總結

錯誤一: Configure: error: xml2-config not found. Please check your libxml2 installation.

Solutions :

yum install libxml2 libxml2-devel (For Redhat & Fedora)



錯誤二: Checking for pkg-config… /usr/bin/pkg-config

configure: error: Cannot find OpenSSL’s

Solutions :

yum install openssl openssl-devel



錯誤三:Configure: error: Please reinstall the BZip2 distribution

Solutions :

yum install bzip2 bzip2-devel



錯誤四: Configure: error: Please reinstall the libcurl distribution -

easy.h should be in /include/curl/

Solutions :

yum install curl curl-devel (For Redhat & Fedora)

# install libcurl4-gnutls-dev (For Ubuntu)



錯誤五:Configure: error: libjpeg.(also) not found.

Solutions :

yum -y install gd

yum -y install gd-devel

yum install libjpeg libjpeg-devel



錯誤六: Configure: error: libpng.(also) not found.

Solutions :

yum install libpng libpng-devel



錯誤七: Configure: error: freetype.h not found.

Solutions :

yum install freetype-devel

Configure: error: Unable to locate gmp.h

Solutions :

yum install gmp-devel



錯誤八: Configure: error: Cannot find MySQL header files under /usr.

Note that the MySQL client library is not bundled anymore!

Solutions :

yum install mysql-devel (For Redhat & Fedora)


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章