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新手上路(九)
Oct 09 PHP
PHP 身份验证方面的函数
Oct 11 PHP
php 文件上传代码(限制jpg文件)
Jan 05 PHP
zend api扩展的php对象的autoload工具
Apr 18 PHP
centos 5.6 升级php到5.3的方法
May 14 PHP
php利用反射实现插件机制的方法
Mar 14 PHP
关于ThinkPhp 框架表单验证及ajax验证问题
Jul 19 PHP
PHP高精确度运算BC函数库实例详解
Aug 15 PHP
PHP空值检测函数与方法汇总
Nov 19 PHP
Ubuntu彻底删除PHP7.0的方法
Jul 27 PHP
PHP内置函数生成随机数实例
Jan 18 PHP
关于PHP中interface的用处详解
Jul 26 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 array数组的教程详解
2013/06/05 PHP
关于URL最大长度限制的相关资料查证
2014/12/23 PHP
Linux下从零开始安装配置Nginx服务器+PHP开发环境
2015/12/21 PHP
PHP中substr函数字符串截取用法分析
2016/01/07 PHP
laravel Model 执行事务的实现
2019/10/10 PHP
laravel框架语言包拓展实现方法分析
2019/11/22 PHP
XAMPP升级PHP版本实现步骤解析
2020/09/04 PHP
动态加载js文件 document.createElement
2006/10/14 Javascript
Span元素的width属性无效果原因及解决方案
2010/01/15 Javascript
ASP.NET中使用后端代码注册脚本 生成JQUERY-EASYUI的界面错位的解决方法
2010/06/12 Javascript
基于jQuery的实现简单的分页控件
2010/10/10 Javascript
jQuery .tmpl() 用法示例介绍
2014/08/21 Javascript
jQuery on()方法使用技巧详解
2015/04/16 Javascript
jstree创建无限分级树的方法【基于ajax动态创建子节点】
2016/10/25 Javascript
遍历json 对象的属性并且动态添加属性的实现
2016/12/02 Javascript
jQuery remove()过滤被删除的元素(推荐)
2017/07/18 jQuery
vue 父组件调用子组件方法及事件
2018/03/29 Javascript
JS实现根据指定值删除数组中的元素操作示例
2018/08/02 Javascript
jQuery中DOM常见操作实例小结
2019/08/01 jQuery
小程序登录之支付宝授权的实现示例
2019/12/13 Javascript
JavaScript禁止右击保存图片,禁止拖拽图片的实现代码
2020/04/28 Javascript
vue 动态给每个页面添加title、关键词和描述的方法
2020/08/28 Javascript
[01:08:10]2014 DOTA2国际邀请赛中国区预选赛 SPD-GAMING VS LGD-CDEC
2014/05/22 DOTA
Python 条件判断的缩写方法
2008/09/06 Python
Python3实现购物车功能
2018/04/18 Python
python os.path模块常用方法实例详解
2018/09/16 Python
Python如何实现强制数据类型转换
2019/11/22 Python
门诊手术室工作制度
2014/01/30 职场文书
医院检讨书范文
2014/02/01 职场文书
班主任工作经验材料
2014/02/02 职场文书
应届生求职信范文
2014/06/30 职场文书
大学生军训自我鉴定范文
2014/09/18 职场文书
标准大学生职业生涯规划书写作指南
2014/09/18 职场文书
2014年幼儿园学期工作总结
2014/12/05 职场文书
2016年小学生清明节广播稿
2015/12/17 职场文书
资深HR教你写好简历中的自我评价
2019/05/07 职场文书