在CentOS编译PHP5的时候有时会遇到以下的一些错误信息,基本上都可以通过yum安装相应的库来解决。以下是具体的一些解决办法:

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

Fix: yum 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 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 install db4-devel

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

Fix: yum 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 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 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 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 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 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 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 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 install sqlite-devel

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

Fix: yum 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 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 install libxslt-devel

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

Fix: yum install libxml2-devel

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

Fix: yum install pcre-devel

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

Fix: yum install mysql-devel

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

Fix: yum install unixODBC-devel

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

Fix:

yum install postgresql-devel

configure: error: Cannot find pspell

Fix: yum install pspell-devel

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

Fix: yum install net-snmp-devel

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

Fix: yum install libxslt-devel

转载于:https://www.cnblogs.com/spirit-/p/4451867.html

php源码编译常见错误解决方案相关推荐

  1. php源码编译常见错误解决方案大全

    php源码编译常见错误解决方案大全 http://www.cnlvzi.com/index.php/Index/article/id/143 在CentOS编译PHP5的时候有时会遇到以下的一些错误信 ...

  2. 编译android源码四(常见错误)

    运行如下命令: $ emulator 1.错误信息: emulator: WARNING: system partition size adjusted to match image file (20 ...

  3. 高通源码编译提示错误

    从网上直接下载的高通源代码,全部编译. 提示错误如下: ninja: Entering directory `.' [  0% 5/27986] target SharedLib: libc (out ...

  4. 再一次源码编译caffe2的血泪史

    文章目录 写在一切之前,放弃源码编译caffe2还来得及 源码编译caffe2 不放弃源码编译caffe2的结果是...... 问题1 :各种各样的错误 问题2:E: 无法定位软件包 build-es ...

  5. Cura二次开发之源码编译

    Cura源码编译 1.Cura内部连接关系 2.CuraEngine源码编译 2.1Protobuf源码编译 三级目录 3.Cura源码编译 4.Error解决方案 1.Cura内部连接关系 2.Cu ...

  6. Android 源码编译及常见错误及解决方法

    Android 源码编译及常见错误及解决方法 参考文章: (1)Android 源码编译及常见错误及解决方法 (2)https://www.cnblogs.com/kyyblabla/p/360393 ...

  7. Hadoop-2.8.0集群搭建、hadoop源码编译和安装、host配置、ssh免密登录、hadoop配置文件中的参数配置参数总结、hadoop集群测试,安装过程中的常见错误

    25. 集群搭建 25.1 HADOOP集群搭建 25.1.1集群简介 HADOOP集群具体来说包含两个集群:HDFS集群和YARN集群,两者逻辑上分离,但物理上常在一起 HDFS集群: 负责海量数据 ...

  8. Android源码编译make的各类错误解决方案汇总

    问题: You are attempting to build with the incorrect version of java.  Your version is: java version & ...

  9. Android4.0源码编译方法以及错误解决方案

    from:http://blog.csdn.net/wanjun8659/article/details/8095664 历时一个星期,终于将android4.0源码编译成功,中间经历了各种曲折,非常 ...

最新文章

  1. 【牛腩新闻发布系统】开发前的准备01
  2. mysql select操作
  3. String : string的长度?string的子串?
  4. 如何向微软 Docs 和本地化社区提交翻译贡献
  5. getSerializableExtra
  6. 【黑客免杀攻防】读书笔记14 - 面向对象逆向-虚函数、MFC逆向
  7. 24小时学会python_零基础python24小时极速入门学习
  8. 下载webpack依赖报错“Refusing to install package with name “webpack“ under a package”
  9. Scipy安装遇到的问题
  10. 怎么看计算机的硬盘容量,Win7怎么看硬盘大小 如何看电脑硬盘大小
  11. windowsxp下载python下载视频_Python 实现视频下载
  12. c语言用fun函数求最大公约数,c语言求最大公约数
  13. python爬取网页的内层页_python爬取网页 下一页
  14. Dlink DIR-615L 和 Mercury MW300R WDS 应用举例
  15. WideDeep——记忆能力和泛化能力的综合
  16. 构建一个类book,其中含有2个私有数据成员qu和price,建立一个有5个元素的数组对象,将qu初始化为1~5,将price初始化为qu的10倍。
  17. 学完数据分析怎样就业,数据分析发展前景怎么样
  18. 安装及配置Maven环境变量
  19. 领跑(LabelPainter)条码标签设计系统优势功能一览
  20. 用IP地址反查主机名

热门文章

  1. 【shell编程基础0】bash shell编程的基本配置
  2. Python 全栈开发 -- 监控篇
  3. 在XIB里面关于@property,@synthesize,release,dealloc的怪现象
  4. 【Azure Services Platform Step by Step-第5篇】.NET Services 概述
  5. mybatis注解开发_Spring Boot 中集成 MyBatis
  6. (127)FPGA面试题-介绍FPGA 门控时钟
  7. xcode 怎么调用midi开发录音_音频应用专业录音声卡:雅马哈UR242声卡教程
  8. crontab 每天凌晨8点_凌晨3点47分,嘉兴8岁女孩竟独自站在街头,原因竟是…
  9. keil MDK中如何生成*.bin格式的文件
  10. Ubuntu环境搭建支持设备树,内核和根文件系统启动