PHP编译安装时常见错误解决办法

本文涉及的产品
云原生数据库 PolarDB MySQL 版,Serverless 5000PCU 100GB
云数据库 RDS MySQL Serverless,0.5-2RCU 50GB
简介:

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




本文转自 小杨_Ivan 51CTO博客,原文链接:http://blog.51cto.com/aqiang/1924388
相关实践学习
基于CentOS快速搭建LAMP环境
本教程介绍如何搭建LAMP环境,其中LAMP分别代表Linux、Apache、MySQL和PHP。
全面了解阿里云能为你做什么
阿里云在全球各地部署高效节能的绿色数据中心,利用清洁计算为万物互联的新世界提供源源不断的能源动力,目前开服的区域包括中国(华北、华东、华南、香港)、新加坡、美国(美东、美西)、欧洲、中东、澳大利亚、日本。目前阿里云的产品涵盖弹性计算、数据库、存储与CDN、分析与搜索、云通信、网络、管理与监控、应用服务、互联网中间件、移动服务、视频服务等。通过本课程,来了解阿里云能够为你的业务带来哪些帮助     相关的阿里云产品:云服务器ECS 云服务器 ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。产品详情: https://www.aliyun.com/product/ecs
相关文章
|
2月前
|
运维 Unix Linux
Linux系统 PHP安装expect扩展详解
Linux系统 PHP安装expect扩展详解
39 5
|
4月前
|
应用服务中间件 PHP nginx
|
7月前
|
Apache PHP 数据安全/隐私保护
(MAC)PHP Apache 安装与配置
(MAC)PHP Apache 安装与配置
220 0
|
7月前
|
关系型数据库 MySQL Unix
PHP MySql 安装与连接
PHP MySql 安装与连接
130 0
|
7月前
|
算法 PHP 数据安全/隐私保护
【实战】php goto解密工具,无需安装php环境,直接解密
php goto解密方法,php解密工具,goto解密,php微擎解密,代码可读性,代码可维护性
387 1
|
4月前
|
Linux 应用服务中间件 PHP
Linux下搭建PHP环境-源码编译安装PHP7.2
Linux下搭建PHP环境-源码编译安装PHP7.2
152 0
|
25天前
|
应用服务中间件 Linux PHP
Linux下安装php环境并且配置Nginx支持php-fpm模块
Linux下安装php环境并且配置Nginx支持php-fpm模块
22 0
|
7月前
|
关系型数据库 MySQL Linux
百度搜索:蓝易云【Centos8 stream系统编译安装PHP教程。】
以上是在CentOS 8 Stream系统上编译安装PHP的基本教程。请注意,具体的配置和参数可能因您的需求而有所不同,您可以根据自己的情况进行调整。同时,请确保在执行任何操作之前备份重要的文件和配置。
224 0
|
4月前
|
Ubuntu 网络协议 应用服务中间件
Ubuntu安装PHP和NGINX环境
PHP-FPM 是 PHP FastCGI Process Manager 的缩写,是 FastCGI 进程管理器。 PHP-FPM 是基于 master/worker 的多进程架构模式,与 nginx 的设计风格类似。master 进程主要负责 CGI、PHP 环境初始化,事件监听、子进程状态,worker 进程负责处理 PHP 请求。 FPM 的 master 通过共享内存获取 worker 进程的信息,包括 worker 进程当前状态、已处理请求数等,当 master 进程要杀掉一个 worker 进程时则通过发送信号的方式通知 worker 进程。
55 0
|
4月前
|
Apache PHP
百度搜索:蓝易云【Apache环境php安装扩展swoole。】
通过以上步骤,你就可以在Apache环境中成功安装和配置Swoole扩展了。请确保你按照正确的步骤进行操作,并根据你的系统和环境进行相应的调整。如果遇到问题,你可以参考Swoole官方文档或社区的支持资源来获取更多帮助。
33 1