background image

failures 

解决:yum -y install zlib-devel openssl-devel 

错误:Configure: error: Unable to locate gmp.h 

解决:yum install gmp-devel 

错误:Configure: error: Cannot find MySQL header files under /usr. 

Note that the MySQL client library is not bundled anymore! 

解决:yum install mysql-devel 

更多的补充内容:

安装 php: ./configure 
configure: error: XML configuration could not be found 

yum -y install libxml2 libxml2-devel 

Cannot find OpenSSL's <evp.h> 
yum install openssl openssl-devel 

1) Configure: error: xml2-config not found. Please check your libxml2 installation. 
#yum install libxml2 libxml2-devel (For RedHat & Fedora) 
# aptitude install libxml2-dev (For Ubuntu) 

2) Checking for pkg-config… /usr/bin/pkg-config 
configure: error: Cannot find OpenSSL's <evp.h> 
#yum install openssl openssl-devel 

3) Configure: error: Please reinstall the BZip2 distribution 
# yum install bzip2 bzip2-devel 

4) Configure: error: Please reinstall the libcurl distribution - 
easy.h should be in <curl-dir>/include/curl/ 
# yum install curl curl-devel (For RedHat & Fedora)