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

本文涉及的产品
云数据库 RDS MySQL,集群系列 2核4GB
推荐场景:
搭建个人博客
RDS MySQL Serverless 基础系列,0.5-2RCU 50GB
云原生数据库 PolarDB MySQL 版,通用型 2核4GB 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
相关实践学习
如何在云端创建MySQL数据库
开始实验后,系统会自动创建一台自建MySQL的 源数据库 ECS 实例和一台 目标数据库 RDS。
全面了解阿里云能为你做什么
阿里云在全球各地部署高效节能的绿色数据中心,利用清洁计算为万物互联的新世界提供源源不断的能源动力,目前开服的区域包括中国(华北、华东、华南、香港)、新加坡、美国(美东、美西)、欧洲、中东、澳大利亚、日本。目前阿里云的产品涵盖弹性计算、数据库、存储与CDN、分析与搜索、云通信、网络、管理与监控、应用服务、互联网中间件、移动服务、视频服务等。通过本课程,来了解阿里云能够为你的业务带来哪些帮助     相关的阿里云产品:云服务器ECS 云服务器 ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。产品详情: https://www.aliyun.com/product/ecs
相关文章
|
9天前
|
域名解析 关系型数据库 MySQL
基于PHPEnv的本地环境搭建—PHP第一个项目:HelloWorld(从安装到运行)
该文章指导如何使用PHPEnv搭建本地PHP开发环境,并通过一个简单的"Hello World"程序演示从安装到运行的全过程。
基于PHPEnv的本地环境搭建—PHP第一个项目:HelloWorld(从安装到运行)
|
9天前
|
PHP Windows
thinkPhP6.0安装教程图解--PHP框架安装
本文是一篇关于ThinkPHP 6.0安装教程的图解,包括环境检查、安装Composer、修改Composer镜像地址、安装ThinkPHP框架以及启动运行ThinkPHP的步骤。文章详细描述了每个步骤的操作方法,并提供了相应的命令和截图,帮助用户理解并顺利完成ThinkPHP 6.0的安装和运行。
thinkPhP6.0安装教程图解--PHP框架安装
|
9天前
|
PHP Apache 数据库
PHP做二次开发:本机安装ThinkCMF系统
文章详细说明了如何在本地环境中从零开始安装并配置ThinkCMF系统,包括环境准备、源代码获取、虚拟域名设置及数据库配置等步骤。
|
2月前
|
Go PHP 数据安全/隐私保护
【应用服务 App Service】Azure App Service 中如何安装mcrypt - PHP
【应用服务 App Service】Azure App Service 中如何安装mcrypt - PHP
|
2月前
|
存储 安全 Linux
【Azure 应用服务】App Service For Linux 怎么安装Composer,怎么安装PHP扩展,怎么来修改站点根路径启动程序?
【Azure 应用服务】App Service For Linux 怎么安装Composer,怎么安装PHP扩展,怎么来修改站点根路径启动程序?
|
2月前
|
敏捷开发 数据可视化 测试技术
阿里云云效产品使用合集之怎么在php composer安装自己服务器的代码
云效作为一款全面覆盖研发全生命周期管理的云端效能平台,致力于帮助企业实现高效协同、敏捷研发和持续交付。本合集收集整理了用户在使用云效过程中遇到的常见问题,问题涉及项目创建与管理、需求规划与迭代、代码托管与版本控制、自动化测试、持续集成与发布等方面。
|
2月前
|
网络协议 API PHP
PhalApi:在宝塔一键安装部署PHP开源接口框架的教程
要在宝塔面板上一键安装部署PhalApi开源接口框架,首先进入宝塔软件商店,切换到“一键部署”选项,搜索“phalapi”并点击“一键部署”。安装时需填写接口域名、数据库名及密码,提交后等待安装完成。安装成功后可在宝塔面板中查看新站点和源代码目录,并通过DNS解析设置访问接口域名,如`http://myapi.phalapi.net/`。默认开启的调试模式便于测试,可通过修改`config/sys.php`中的`debug`值为`false`关闭。最后,在源代码中开发自己的PHP接口,PhalApi会自动生成在线接口文档,方便后续调用与维护。更多详细教程可参考官方文档。
|
2月前
|
PHP
PHP——oneinstack重新安装PHP的时候报错
PHP——oneinstack重新安装PHP的时候报错
41 4
|
2月前
|
PHP
PHP——安装ThinkPHP框架报错
PHP——安装ThinkPHP框架报错
19 0
|
4月前
|
Ubuntu PHP
ubuntu php libzip安装 ./configure报错 checking for libzip... not found configure
ubuntu php libzip安装 ./configure报错 checking for libzip... not found configure
88 1