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下实现伪 url 的超简单方法[转]
Sep 24 PHP
两个强悍的php 图像处理类1
Jun 15 PHP
我的php学习笔记(毕业设计)
Feb 21 PHP
基于Zookeeper的使用详解
May 02 PHP
destoon首页调用求购供应信息的地区名称的方法
Aug 21 PHP
PHP+jQuery 注册模块的改进(一):验证码存入SESSION
Oct 14 PHP
为PHP安装imagick时出现Cannot locate header file MagickWand.h错误的解决方法
Nov 03 PHP
php验证手机号码
Nov 11 PHP
使用PHPMailer发送邮件实例
Feb 15 PHP
PHP实现按之字形顺序打印二叉树的方法
Jan 16 PHP
CI框架(CodeIgniter)操作redis的方法详解
Jan 25 PHP
Yii框架学习笔记之session与cookie简单操作示例
Apr 30 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 分页函数multi() discuz
2009/06/21 PHP
destoon利用Rewrite规则设置网站安全
2014/06/21 PHP
MyEclipse常用配置图文教程
2014/09/11 PHP
php获取指定日期之间的各个周和月的起止时间
2014/11/24 PHP
php preg_match的匹配不同国家语言实例
2016/12/29 PHP
PDO::query讲解
2019/01/29 PHP
学习YUI.Ext 第二天
2007/03/10 Javascript
jQuery 页面 Mask实现代码
2010/01/09 Javascript
Confirmer JQuery确认对话框组件
2010/06/09 Javascript
可兼容IE的获取及设置cookie的jquery.cookie函数方法
2013/09/02 Javascript
扒一扒JavaScript 预解释
2015/01/28 Javascript
JS 清除字符串数组中,重复元素的实现方法
2016/05/24 Javascript
微信小程序 连续旋转动画(this.animation.rotate)详解
2017/04/07 Javascript
详解webpack之scss和postcss-loader的配置
2018/01/09 Javascript
vue的常用组件操作方法应用分析
2018/04/13 Javascript
webpack打包优化的几个方法总结
2020/02/10 Javascript
Vue中点击active并第一个默认选中功能的实现
2020/02/24 Javascript
[02:41]DOTA2英雄基础教程 亚巴顿
2014/01/02 DOTA
Python 文件操作的详解及实例
2017/09/18 Python
python列表生成式与列表生成器的使用
2018/02/23 Python
python实现反转部分单向链表
2018/09/27 Python
python字符串替换第一个字符串的方法
2019/06/26 Python
python3使用GUI统计代码量
2019/09/18 Python
查看端口并杀进程python脚本代码
2019/12/17 Python
python实现滑雪者小游戏
2020/02/22 Python
canvas与html5实现视频截图功能示例
2016/12/15 HTML / CSS
美国最受欢迎的度假租赁网站:VRBO
2016/08/02 全球购物
美国折扣网站:jClub
2017/08/07 全球购物
UGG美国官网:购买UGG雪地靴、拖鞋和鞋子
2017/12/31 全球购物
文秘专业自荐信
2013/10/14 职场文书
电大本科自我鉴定
2014/02/05 职场文书
小学生环保标语
2014/06/13 职场文书
奥巴马当选演讲稿
2014/09/10 职场文书
工地材料员岗位职责
2015/04/11 职场文书
golang 实现时间戳和时间的转化
2021/05/07 Golang
Mysql的Table doesn't exist问题及解决
2022/12/24 MySQL