阅读(3856)

安装php环境错误解决办法

最后一次修改 2017年12月23日

本文主要和大家分享安装PHP环境出错及解决办法,希望能帮助到大家。

错误: 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环境搭建(php+Apache+mysql) 的详细介绍

PHP环境配置

在IIS中PHP环境的三种配置方式以及比较

linux 下php环境搭建