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
PHP6 先修班 JSON实例代码
Aug 23 PHP
PHP 数据结构 算法描述 冒泡排序 bubble sort
Jul 10 PHP
优化PHP程序的方法小结
Feb 23 PHP
php中文乱码怎么办如何让浏览器自动识别utf-8
Jan 15 PHP
ThinkPHP分页类使用详解
Mar 05 PHP
PHP版QQ互联OAuth示例代码分享
Jul 05 PHP
Linux下从零开始安装配置Nginx服务器+PHP开发环境
Dec 21 PHP
解决安装WampServer时提示缺少msvcr110.dll文件的问题
Jul 09 PHP
完美解决Thinkphp3.2中插入相同数据的问题
Aug 01 PHP
PHP封装的数据库模型Model类完整示例【基于PDO】
Mar 14 PHP
调试php程序的简单步骤
Oct 04 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模块 Memcached功能多于Memcache
2011/06/14 PHP
PHP中copy on write写时复制机制介绍
2014/05/13 PHP
php中操作memcached缓存进行增删改查数据的实现代码
2014/08/15 PHP
PHP封装的XML简单操作类完整实例
2017/11/13 PHP
详解php伪造Referer请求反盗链资源
2019/01/24 PHP
Thinkphp极验滑动验证码实现步骤解析
2020/11/24 PHP
jQuery 点击图片跳转上一张或下一张功能的实现代码
2010/03/12 Javascript
简介AngularJS的视图功能应用
2015/06/17 Javascript
JS+DIV+CSS实现仿表单下拉列表效果
2015/08/18 Javascript
详解vue-cli + webpack 多页面实例应用
2017/04/25 Javascript
Jquery把获取到的input值转换成json
2017/05/15 jQuery
Vue中的scoped实现原理及穿透方法
2018/05/15 Javascript
angularjs下ng-repeat点击元素改变样式的实现方法
2018/09/12 Javascript
vue 中使用 watch 出现了如下的报错的原因分析
2019/05/21 Javascript
js图片查看器插件用法示例
2019/06/22 Javascript
layui框架与SSM前后台交互的方法
2019/09/12 Javascript
微信小程序实现左侧滑动导航栏
2020/04/08 Javascript
Vue混入mixins滚动触底的方法
2019/11/22 Javascript
Vue表单控件数据绑定方法详解
2020/02/05 Javascript
JavaScript中的this妙用实例分析
2020/05/09 Javascript
在Python的Django框架的视图中使用Session的方法
2015/07/23 Python
不要用强制方法杀掉python线程
2017/02/26 Python
python绘制随机网络图形示例
2019/11/21 Python
python3 tkinter实现添加图片和文本
2019/11/26 Python
python中有关时间日期格式转换问题
2019/12/25 Python
如何用border-image实现文字气泡边框的示例代码
2020/01/21 HTML / CSS
HTML5 本地存储实现购物车功能
2017/09/07 HTML / CSS
x-ua-compatible content=”IE=7, IE=9″意思理解
2013/07/22 HTML / CSS
房地产融资计划书
2014/01/10 职场文书
《新型玻璃》教学反思
2014/04/13 职场文书
医生党的群众路线教育实践活动个人对照检查材料
2014/09/23 职场文书
乒乓球比赛通知
2015/04/27 职场文书
心灵点滴观后感
2015/06/02 职场文书
pygame面向对象的飞行小鸟实现(Flappy bird)
2021/04/01 Python
MySQL实例精讲单行函数以及字符数学日期流程控制
2021/10/15 MySQL
Pillow图像处理库安装及使用
2022/04/12 Python