错误: configure: error: libevent >= 1.4.11 could not be found 
解决: yum -y install libevent libevent-devel


错误:configure: error: xml2-config not found. Please check your libxml2 installation. 
解决: yum -y install libxml2 libxml2-devel


错误: configure: error: mcrypt.h not found. Please reinstall libmcrypt.  
 解决: yum install libmcrypt libmcrypt-devel 


错误: configure: error: Please reinstall the libcurl distribution - easy.h should be in <CURL-DIR>/include/curl/  
 解决: yum -y install curl-devel 


错误: If configure fails try --with-jpeg-dir=  configure: error: libpng.(a|so) not found. 
解决: yum -y install libpng-devel


错误: /usr/bin/ld: cannot find -lltdl  collect2: ld returned 1 exit status  
解决: yum -y install libtool-ltdl-devel 

 

 主要是一些库没安装的原因。


转载请注明来源:PHP相关系列 - 安装php环境错误解决

  哈尔滨品用软件有限公司致力于为哈尔滨的中小企业制作大气、美观的优秀网站,并且能够搭建符合百度排名规范的网站基底,使您的网站无需额外费用,即可稳步提升排名至首页。欢迎体验最佳的哈尔滨网站建设