PHP编译安装时常见错误解决办法


Posted in PHP onMay 28, 2015

This article is post on https://coderwall.com/p/ggmpfa

configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution

yum -y install libxslt-devel

configure: error: Could not find net-snmp-config binary. Please check your net-snmp installation.
yum -y install net-snmp-devel

configure: error: Please reinstall readline - I cannot find readline.h
yum -y install readline-devel

configure: error: Cannot find pspell
yum -y install aspell-devel

checking for unixODBC support... configure: error: ODBC header file '/usr/include/sqlext.h' not found!
yum -y install unixODBC-devel

configure: error: Unable to detect ICU prefix or /usr/bin/icu-config failed. Please verify ICU install prefix and make sure icu-config works.
yum -y install libicu-devel

configure: error: utf8mime2text() has new signature, but U8TCANONICAL is missing. This should not happen. Check config.log for additional information.
yum -y install libc-client-devel

configure: error: freetype.h not found.
yum -y install freetype-devel

configure: error: xpm.h not found.
yum -y install libXpm-devel

configure: error: png.h not found.
yum -y install libpng-devel

configure: error: vpx_codec.h not found.
yum -y install libvpx-devel

configure: error: Cannot find enchant
yum -y install enchant-devel

configure: error: Please reinstall the libcurl distribution - easy.h should be in /include/curl/
yum -y install libcurl-devel

LAOGAO added 20140907:

configure: error: mcrypt.h not found. Please reinstall libmcrypt.

wget ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/libmcrypt/libmcrypt-2.5.7.tar.gz

tar zxf libmcrypt-2.5.7.tar.gz

cd libmcrypt-2.5.7

./configure

make && make install

added 20141003:

Cannot find imap

ln -s /usr/lib64/libc-client.so /usr/lib/libc-client.so

configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing.
yum -y install libc-client-devel

Cannot find ldap.h
yum -y install openldap

yum -y install openldap-devel

configure: error: Cannot find ldap libraries in /usr/lib
cp -frp /usr/lib64/libldap* /usr/lib/

configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path
yum -y install postgresql-devel

configure: error: Please reinstall the lib curl distribution
yum -y install curl-devel

configure: error: Could not find net-snmp-config binary. Please check your net-snmp installation.
yum -y install net-snmp-devel

configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution
yum -y install libxslt-devel

checking for BZip2 support… yes checking for BZip2 in default path… not found configure: error: Please reinstall the BZip2 distribution

Fix:

yum -y install bzip2-devel

checking for cURL support… yes checking if we should use cURL for url streams… no checking for cURL in default path… not found configure: error: Please reinstall the libcurl distribution ? easy.h should be in/include/curl/

Fix:

yum -y install curl-devel

checking for curl_multi_strerror in -lcurl… yes checking for QDBM support… no checking for GDBM support… no checking for NDBM support… no configure: error: DBA: Could not find necessary header file(s).

Fix:

yum -y install db4-devel

checking for fabsf… yes checking for floorf… yes configure: error: jpeglib.h not found.

Fix:

yum -y install libjpeg-devel

checking for fabsf… yes checking for floorf… yes checking for jpeg_read_header in -ljpeg… yes configure: error: png.h not found.

Fix:

yum -y install libpng-devel

checking for png_write_image in -lpng… yes If configure fails try ?with-xpm-dir=

configure: error: freetype.h not found.
Fix:

Reconfigure your PHP with the following option. --with-xpm-dir=/usr

checking for png_write_image in -lpng… yes configure: error: libXpm.(a|so) not found.

Fix:

yum -y install libXpm-devel

checking for bind_textdomain_codeset in -lc… yes checking for GNU MP support… yes configure: error: Unable to locate gmp.h

Fix:

yum -y install gmp-devel

checking for utf8_mime2text signature… new checking for U8T_DECOMPOSE… configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.

Fix:

yum -y install libc-client-devel

checking for LDAP support… yes, shared checking for LDAP Cyrus SASL support… yes configure: error: Cannot find ldap.h

Fix:

yum -y install openldap-devel

checking for mysql_set_character_set in -lmysqlclient… yes checking for mysql_stmt_next_result in -lmysqlclient… no checking for Oracle Database OCI8 support… no checking for unixODBC support… configure: error: ODBC header file ‘/usr/include/sqlext.h' not found!

Fix:

yum -y install unixODBC-devel

checking for PostgreSQL support for PDO… yes, shared checking for pg_config… not found configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path

Fix:

yum -y install postgresql-devel

checking for sqlite 3 support for PDO… yes, shared checking for PDO includes… (cached) /usr/local/src/php-5.3.7/ext checking for sqlite3 files in default path… not found configure: error: Please reinstall the sqlite3 distribution

Fix:

yum -y install sqlite-devel

checking for utsname.domainname… yes checking for PSPELL support… yes configure: error: Cannot find pspell

Fix:

yum -y install aspell-devel

checking whether to enable UCD SNMP hack… yes checking for default_store.h… no

checking for kstat_read in -lkstat… no checking for snmp_parse_oid in -lsnmp… no checking for init_snmp in -lsnmp… no configure: error: SNMP sanity check failed. Please check config.log for more information.

Fix:

yum -y install net-snmp-devel

checking whether to enable XMLWriter support… yes, shared checking for xml2-config path… (cached) /usr/bin/xml2-config checking whether libxml build works… (cached) yes checking for XSL support… yes, shared configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution

Fix:

yum -y install libxslt-devel

configure: error: xml2-config not found. Please check your libxml2 installation.

Fix:

yum -y install libxml2-devel

checking for PCRE headers location… configure: error: Could not find pcre.h in /usr

Fix:

yum -y install pcre-devel

configure: error: Cannot find MySQL header files under yes. Note that the MySQL client library is not bundled anymore!

Fix:

yum -y install mysql-devel

checking for unixODBC support… configure: error: ODBC header file ‘/usr/include/sqlext.h' not found!

Fix:

yum -y install unixODBC-devel

checking for pg_config… not found configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path

Fix:

yum -y install postgresql-devel

configure: error: Cannot find pspell

Fix:

yum -y install pspell-devel

configure: error: Could not find net-snmp-config binary. Please check your net-snmp installation.

Fix:

yum -y install net-snmp-devel

configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution

Fix:

yum -y install libxslt-devel
PHP 相关文章推荐
php中处理模拟rewrite 效果
Dec 09 PHP
mysql5的sql文件导入到mysql4的方法
Oct 19 PHP
php xml留言板 xml存储数据的简单例子
Aug 24 PHP
php读取mysql中文数据出现乱码的解决方法
Aug 16 PHP
PHP基于GD库的缩略图生成代码(支持jpg,gif,png格式)
Jun 19 PHP
作为程序员必知的16个最佳PHP库
Dec 09 PHP
PHP数组去重比较快的实现方式
Jan 19 PHP
PHP访问数据库集群的方法小结
Mar 14 PHP
PHP字符串逆序排列实现方法小结【strrev函数,二分法,循环法,递归法】
Jan 13 PHP
php使用自定义函数实现汉字分割替换功能示例
Jan 30 PHP
Laravel 微信小程序后端实现用户登录的示例代码
Nov 26 PHP
PHP 技巧 * SVG 保存为图片(分享图生成)
Apr 02 PHP
PHP安装memcached扩展笔记
May 28 #PHP
PHP实现的增强性mhash函数
May 27 #PHP
PHP验证信用卡卡号是否正确函数
May 27 #PHP
PHP的伪随机数与真随机数详解
May 27 #PHP
php实现window平台的checkdnsrr函数
May 27 #PHP
PHP实现恶意DDOS攻击避免带宽占用问题方法
May 27 #PHP
PHP简单实现HTTP和HTTPS跨域共享session解决办法
May 27 #PHP
You might like
PHP代码优化的53个细节
2014/03/03 PHP
php目录拷贝实现方法
2015/07/10 PHP
让插入到 innerHTML 中的 script 跑起来的实现代码
2006/07/01 Javascript
jQuery ajax cache缓存问题
2010/07/01 Javascript
jquery修改网页背景颜色通过css方法实现
2014/06/06 Javascript
JavaScript实现检查页面上的广告是否被AdBlock屏蔽了的方法
2014/11/03 Javascript
AngularJS初始化过程分析(引导程序)
2014/12/06 Javascript
使用JavaScript获取地址栏参数的方法
2014/12/19 Javascript
js使用onmousemove和onmouseout获取鼠标坐标的方法
2015/03/31 Javascript
JavaScript中停止执行setInterval和setTimeout事件的方法
2015/05/14 Javascript
jQuery Uploadify 上传插件出现Http Error 302 错误的解决办法
2015/12/12 Javascript
Javascript农历与公历相互转换的简单实例
2016/10/09 Javascript
JavaScript页面实时显示当前时间实例代码
2016/10/23 Javascript
js事件冒泡与事件捕获详解
2017/02/20 Javascript
JS的Ajax与后端交互数据的实例
2018/08/08 Javascript
JavaScript实现图片放大预览效果
2020/11/02 Javascript
python获取标准北京时间的方法
2015/03/24 Python
简单介绍Python中的decode()方法的使用
2015/05/18 Python
利用Python生成文件md5校验值函数的方法
2017/01/10 Python
Python中多个数组行合并及列合并的方法总结
2018/04/12 Python
python使用pygame框架实现推箱子游戏
2018/11/20 Python
在Pycharm中对代码进行注释和缩进的方法详解
2019/01/20 Python
python 如何将数据写入本地txt文本文件的实现方法
2019/09/11 Python
Python中的xlrd模块使用原理解析
2020/05/21 Python
python判断变量是否为列表的方法
2020/09/17 Python
python如何实现DES加密
2020/09/21 Python
Python脚本打包成可执行文件过程解析
2020/10/20 Python
html5教程调用绘图api画简单的圆形代码分享
2013/12/04 HTML / CSS
C#面试题
2016/05/06 面试题
营销与策划个人求职信
2013/09/22 职场文书
学生个人求职自荐信格式
2013/09/23 职场文书
美术教学感言
2014/02/22 职场文书
珍惜水资源建议书
2014/03/12 职场文书
安全员岗位职责
2015/02/10 职场文书
PyTorch梯度裁剪避免训练loss nan的操作
2021/05/24 Python
JavaScript原型链中函数和对象的理解
2022/06/16 Javascript