安装PHP可能会出现的错误
2015-08-25 23:51
771 查看
错误1:
错误2:
错误3:
错误4:
错误5:
错误6:
错误7:
错误8:
因为CentOS默认的yum源没有libmcrypt-devel包,所以只能借助第三方yum源。
http://www.apelearn.com/bbs/forum.php?mod=viewthread&tid=6721&highlight=epel
configure: error: xml2-config not found. Please check your libxml2 installation.解决:
[root@tpp php-5.3.27]# yum install -y libxml2-devel
错误2:
configure: error: Cannot find OpenSSL's <evp.h>解决:
[root@tpp php-5.3.27]# yum install -y openssl openssl-devel
错误3:
checking for BZip2 in default path... not found configure: error: Please reinstall the BZip2 distribution解决:
[root@tpp php-5.3.27]# yum install -y bzip2 bzip2-devel
错误4:
configure: error: png.h not found.解决:
[root@tpp php-5.3.27]# yum install -y libpng libpng-devel
错误5:
configure: error: freetype.h not found解决:
[root@tpp php-5.3.27]# yum install -y freetype freetype-devel
错误6:
configure: error: jpeglib.h not found.解决:
[root@tpp php-5.3.27]# yum install -y libjpeg-devel
错误7:
configure: error: png.h not found.解决:
[root@tpp php-5.3.27]# yum install -y libpng libpng-devel
错误8:
configure: error: mcrypt.h not found. Please reinstall libmcrypt.解决:
[root@tpp php-5.3.27]# rpm -ivh "http://www.aminglinux.com/bbs/data/attachment/forum/month_1211/epel-release-6-7.noarch.rpm" [root@tpp php-5.3.27]# yum install -y libmcrypt-devel
因为CentOS默认的yum源没有libmcrypt-devel包,所以只能借助第三方yum源。
http://www.apelearn.com/bbs/forum.php?mod=viewthread&tid=6721&highlight=epel
相关文章推荐
- 一个关于if else容易迷惑的问题
- PHP5.2.*防止Hash冲突拒绝服务攻击的Patch
- 深入理解PHP之匿名函数
- JSP/PHP基于Ajax的分页功能实现
- 关于PHP通过PDO用中文条件查询MySQL的问题。
- 什么是设计模式
- PHP数据库长连接mysql_pconnect的细节
- Php Installing An Expansion
- PHP+Apache在Windows 9x下的安装和配置
- IIS 6 的 PHP 最佳配置方法
- 安装Apache和PHP的一些补充
- Linux Apache+MySQL+PHP
- 建立Apache+PHP+MySQL数据库驱动的动态网站
- PHP 5.3.0 安装分析心得
- apache 环境下 php 的配置注意事项
- ASP.NET、ASP、PHP、JSP之间有什么区别?
- PHP VBS JS 函数 对照表
- C语言实现的统计php代码行数功能源码(支持文件夹、多目录)
- php xml 入门学习资料