编译安装php时的几个报错解决方法
2012-03-15 17:31
513 查看
手动编译是挺麻烦的,一会出这个问题报错一会出那个问题报错,环境总是缺少那样或者这样的包没装,找到的资料留个备忘吧!
1. 错误: configure: error: libjpeg.(a|so) not found.
解决:
#yum install libjpeg libjpeg-devel -y
2. 错误:Configure: error: xml2-config not found. Please check your libxml2 installation.
解决:
#yum install openssl openssl-devel -y
3. 错误: Configure: error: Please reinstall the BZip2 distribution
#yum install bzip2 bzip2-devel
4. 错误:Configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/
解决:
#yum install curl curl-devel
5. 错误:Configure: error: libpng.(also) not found
解决:
#yum install libpng libpng-devel
6. 错误:Configure: error: freetype.h not found.
#yum install freetype-devel
7. 错误:Configure: error: Unable to locate gmp.h
解决:
#yum install gmp-devel
8. 错误:make 时报错:
In file included from /root/php-5.2.17/sapi/cgi/fpm/fpm.c:12:
/root/php-5.2.17/sapi/cgi/fpm/fpm_env.h:20: 错误:与 ‘clearenv’ 类型冲突
/usr/include/stdlib.h:689: 错误:‘clearenv’ 的上一个声明在此
make: *** [sapi/cgi/fpm/fpm.lo] 错误 1
解决:
make时携带参数:#make ZEND_EXTRA_LIBS=’-liconv’
本文出自 “DBQ blog” 博客,请务必保留此出处http://naonao.blog.51cto.com/1135983/806865
1. 错误: configure: error: libjpeg.(a|so) not found.
解决:
#yum install libjpeg libjpeg-devel -y
2. 错误:Configure: error: xml2-config not found. Please check your libxml2 installation.
解决:
#yum install openssl openssl-devel -y
3. 错误: Configure: error: Please reinstall the BZip2 distribution
#yum install bzip2 bzip2-devel
4. 错误:Configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/
解决:
#yum install curl curl-devel
5. 错误:Configure: error: libpng.(also) not found
解决:
#yum install libpng libpng-devel
6. 错误:Configure: error: freetype.h not found.
#yum install freetype-devel
7. 错误:Configure: error: Unable to locate gmp.h
解决:
#yum install gmp-devel
8. 错误:make 时报错:
In file included from /root/php-5.2.17/sapi/cgi/fpm/fpm.c:12:
/root/php-5.2.17/sapi/cgi/fpm/fpm_env.h:20: 错误:与 ‘clearenv’ 类型冲突
/usr/include/stdlib.h:689: 错误:‘clearenv’ 的上一个声明在此
make: *** [sapi/cgi/fpm/fpm.lo] 错误 1
解决:
make时携带参数:#make ZEND_EXTRA_LIBS=’-liconv’
本文出自 “DBQ blog” 博客,请务必保留此出处http://naonao.blog.51cto.com/1135983/806865
相关文章推荐
- PHP源码包编译安装错误及解决方法汇总
- Linux 安装编译PHP出现的问题及解决方法
- 编译安装PHP 时遇到问题解决方法
- 编译安装PHP 时遇到问题解决方法.
- PHP编译安装中遇到的两个错误和解决方法
- php编译安装5.3.2时区错误解决方法
- 编译安装PHP出现configure: error: MySQL configure failed. Please check config.log的解决方法
- 编译安装php之安装libiconv-1.14.tar.gz出错解决方法
- 编译安装php问题以及解决方法
- 编译安装PHP 时遇到问题解决方法.
- 手动编译安装PHP遇到错误以及解决方法记录
- 编译安装PHP 时遇到问题解决方法.
- phpize 编译安装php扩展的时候出现Cannot find autoconf的解决方法
- PHP 5.3.10 编译安装时出现 undefined reference to `libiconv' 错误的解决方法
- 编译安装php时提示Cannot find MySQL header files的解决方法
- PHP编译安装中遇到的两个错误和解决方法
- PHP 5.3.10 编译安装时出现 undefined reference to `libiconv' 错误的解决方法
- 编译安装PHP出现configure: error: mysql configure failed. Please check config.log的解决方法
- 编译安装php时提示Cannot find MySQL header files的解决方法
- php编译安装常见错误大全和解决方法