码迷,mamicode.com
首页 > Web开发 > 详细

LAMP 1.4 PHP编译安装问题解决

时间:2015-12-02 00:34:46      阅读:168      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!