首页 > Web开发 > 详细

LAMP 1.4 PHP编译安装问题解决

时间:2015-12-02 00:32:51      阅读:225      评论:0      收藏:0      [点我收藏+]

在这一步,遇到如下错误:
configure: error: xml2-config not found. Please check your libxml2 installation.
解决办法是:
# yum install -y libxml2-devel
还有错误:
configure: error: Cannot find OpenSSL‘s <evp.h>
解决办法是:
# yum install -y openssl openssl-devel
错误:
checking for BZip2 in default path... not found
configure: error: Please reinstall the BZip2 distribution
解决办法:

# yum install -y bzip2 bzip2-devel
错误:
configure: error: png.h not found.
解决办法:
# yum install -y libpng libpng-devel
错误:
configure: error: freetype.h not found.
解决办法:
# yum install -y freetype freetype-devel
错误:
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
解决办法:
# yum install -y epel-release
# yum install -y libmcrypt-devel
因为 centos6 默认的 yum 源没有 libmcrypt-devel 这个包,只能借助 epel 的 yum 源。

 configure: error: jpeglib.h not found.错误

安装 yum install libjpeg-devel

 

LAMP 1.4 PHP编译安装问题解决

原文:http://www.cnblogs.com/wangshaojun/p/5011641.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!