php专区

 首页 > php专区 > PHP高级 > 缓存异常处理 > PHP相关系列-安装php环境错误解决

PHP相关系列-安装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 /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 

 

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


分享到:
使用phpize建立php扩展(Cannotfindconfi...
php源码:/root/soft/php-5.3.4 php安装: /usr/local/php [root@ns root]# phpize Cannot find config.m4. Make sure that you run '/usr/local/php/bin/phpize' in the top level source directory of the module [root@ns root]# phpize Cannot find config.m4. Make sure that you run '/usr/local...
善用php-fpm的慢执行日志slowlog分析PHP...
启用 php-fpm 的 slow log 日志,查看执行时间过长的php文件,并将执行时间过长的进程直接终止掉!看看效果如何! 具体操作方法也简单,就修改一个文件,执行命令:# vi /usr/local/php/etc/php-fpm.conf PHP 5.3.3 之前版本设置如下:       The timeout (in seconds) for serving a single request after whi...
  •         php迷,一个php技术的分享社区,专属您自己的技术摘抄本、收藏夹。
  • 在这里……