广告
返回顶部
首页 > 资讯 > 后端开发 > PHP编程 >php编译安装常见错误大全和解决方法
  • 445
分享到

php编译安装常见错误大全和解决方法

解决方法常见错误 2022-06-04 21:06:39 445人浏览 薄情痞子
摘要

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

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

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

解决方法: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/

解决方法: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).

解决方法:yum install db4-devel

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

解决方法: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.

解决方法: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.


解决方法: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.

解决方法: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

解决方法: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.

解决方法:yum install libc-client-devel

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

解决方法: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

解决方法: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

解决方法:yum install sqlite-devel

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

解决方法: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.

解决方法: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

解决方法:yum install libxslt-devel

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

解决方法:yum install libxml2-devel

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

解决方法:yum install pcre-devel

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

解决方法:yum install mysql-devel

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

解决方法: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

解决方法:yum install pspell-devel

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

解决方法:yum install net-snmp-devel

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

解决方法:yum install libxslt-devel

--结束END--

本文标题: php编译安装常见错误大全和解决方法

本文链接: https://www.lsjlt.com/news/17818.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
  • php编译安装常见错误大全和解决方法
    在CentOS编译PHP5的时候有时会遇到以下的一些错误信息,基本上都可以通过yum安装相应的库来解决。以下是具体的一些解决办法: checking for BZip2 support… yes chec...
    99+
    2022-06-04
    解决方法 常见 错误
  • php编译安装常见的错误以及解决方法
    这篇文章主要介绍“php编译安装常见的错误以及解决方法”,在日常操作中,相信很多人在php编译安装常见的错误以及解决方法问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”php编译安装常见的错误以及解决方法”的疑...
    99+
    2023-06-09
  • CentOS编译安装PHP常见错误及解决办法
    1.configure: error: No curses/termcap library found yum -y install ncurses-devel 2.configure: error: xml2-conf...
    99+
    2022-06-04
    centos 编译安装php centos 编译安装
  • C++编译器常见的错误和警告解决方法
    C++编译器常见的错误和警告解决方法引言:C++是一种功能强大的编程语言,但在编写代码的过程中,我们常常会遇到编译器报错和警告的情况。这些错误和警告可能由于语法错误、逻辑错误或者代码不规范引起。本文将介绍常见的C++编译器错误和警告,并提供...
    99+
    2023-10-22
    编译器错误 - 类型错误 - 语法错误 - 逻辑错误 编译器警告
  • 安装sql server 2008的常见错误和解决方法
    这篇文章将为大家详细讲解有关安装sql server 2008的常见错误和解决方法,文章内容质量较高,因此小编分享给大家做个参考,希望大家阅读完这篇文章后对相关知识有一定的了解。安装sql server 2...
    99+
    2022-10-19
  • PHP 常见错误及其解决方法
    PHP是一种广泛应用于Web开发的编程语言,由于其易学易用的特点,越来越多的开发者开始使用PHP进行开发工作。然而,在PHP开发过程中,可能会出现各种错误,导致程序无法正常运行。本文将介绍PHP开发过...
    99+
    2023-09-18
    php 开发语言
  • phpmyadmin常见的错误和解决方法
    本篇文章给大家分享的是有关phpmyadmin常见的错误和解决方法,小编觉得挺实用的,因此分享给大家学习,希望大家阅读完这篇文章后可以有所收获,话不多说,跟着小编一起来看看吧。1.phpmyadmin解决i...
    99+
    2022-10-18
  • php编译iconv错误的解决方法是什么
    这篇文章主要介绍“php编译iconv错误的解决方法是什么”,在日常操作中,相信很多人在php编译iconv错误的解决方法是什么问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”php编译iconv错误的解决方法...
    99+
    2023-06-25
  • PHP中常见错误的具体解决方法
    本篇内容介绍了“PHP中常见错误的具体解决方法”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!PHP常见错误是:No page rendere...
    99+
    2023-06-17
  • MySQL安装常见报错处理方法总结大全
    目录前言1.无法启动处理,错误10531.1 结束进程1.2 更改网络服务1.3 删除服务2.Winwods安装初始化报错3.Centos环境rpm初始化mysql报错4.MySQL8安装后无法登陆总结前言 本文总结了M...
    99+
    2022-07-15
    MySQL安装报错 mysql安装报错1045 mysql安装时报错1130
  • 源码编译安装Apache httpd 错误error:pcre-config not found 解决办法
    问题 checking for pcre-config… false configure: error: pcre-config for libpcre not found. PCRE is required and available f...
    99+
    2023-09-15
    apache 服务器 php 1024程序员节
  • PHP出现全局异常/错误的解决方法
    小编给大家分享一下PHP出现全局异常/错误的解决方法,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!异常如果我们抛出一个 Exception 而没有进行 try c...
    99+
    2023-06-20
  • php字符串转数字时常见的错误和解决方法
    在开发PHP应用程序时,常常需要对字符串进行解析和转换。在很多情况下,我们需要将字符串转换为数字类型来进行计算和比较。虽然PHP提供了一些内置函数来实现这些转换操作,但在某些情况下会遇到一些问题,例如在字符串转换为数字时不准确或者转换失败,...
    99+
    2023-05-14
  • thinkphp3.2中的常见错误和解决方法是什么
    本篇内容主要讲解“thinkphp3.2中的常见错误和解决方法是什么”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“thinkphp3.2中的常见错误和解决方法是什么”吧!1.404错误返回当我们...
    99+
    2023-07-05
  • centos:/tmp不能运行导致的安装编译错误问题的解决方法
    这篇文章主要讲解了“centos:/tmp不能运行导致的安装编译错误问题的解决方法”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“centos:/tmp不能运行导致的安装编译错误问题的解决方法...
    99+
    2023-06-10
  • PHP中常见错误类型及其解决方法【总结】
    PHP是一门广泛应用于Web开发、服务器脚本编程的编程语言,具有易学易用、扩展性强、高效稳定等优点。但是在PHP开发过程中,程序员难免会遇到各种各样的错误,下面我们来看一下PHP中常见的错误类型及其解决方法。1. 语法错误语法错误是最常见的...
    99+
    2023-05-14
    php
  • 常见php变量命名错误及解决方法有哪些
    这篇文章主要讲解了“常见php变量命名错误及解决方法有哪些”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“常见php变量命名错误及解决方法有哪些”吧!一、PHP变量命名规则在PHP中,变量名必...
    99+
    2023-07-05
  • PHP中常见错误类型及其解决方法是什么
    本篇内容介绍了“PHP中常见错误类型及其解决方法是什么”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!1. 语法错误语法错误是最常见的错误之一...
    99+
    2023-07-05
  • 详细阐述一些常见的GitHub错误和解决方法
    GitHub是一个广泛使用的在线代码托管平台,旨在帮助代码开发人员合作开发和管理代码。然而,有时你可能会遇到一些GitHub错误,这些错误可能会影响你的开发流程和效率。在本文中,我们将详细阐述一些常见的GitHub错误,并探讨如何解决它们。...
    99+
    2023-10-22
  • GO编程中常见的数据类型错误及其解决方法
    在GO编程中,数据类型错误常常是程序出现问题的主要原因之一。本文将介绍GO编程中常见的数据类型错误,并提供相应的解决方法。 类型不匹配 类型不匹配是GO编程中最常见的类型错误之一。它通常发生在将一个类型的值赋给另一个类型时。 例如,下...
    99+
    2023-09-20
    关键字 数据类型 编程算法
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作