`
275553385
  • 浏览: 730038 次
  • 性别: Icon_minigender_1
  • 来自: 无锡
文章分类
社区版块
存档分类
最新评论

configure: error: Cannot find MySQL header files

阅读更多
编译PHP时提示:configure: error: Cannot find MySQL header files 。
找不到mysql的头文件。机器上的mysql的安装centos的时候自带的。

需要yum安装mysql-devel。
yum install mysql-devel
.
然后在php编译的configure中添加
--with-mysql=/usr


要找到对应的mysql.h的文件。rpm包安装的话,在/usr/include/mysql文件夹下面。
分享到:
评论

相关推荐

    CentOS下编译php时的一些典型错误及解决办法.

    11. configure: error: Cannot find MySQL header files under /usr.Note that the MySQL client library is not bundled anymore! 解决方法: yum install mysql-devel 此错误是由于缺少 mysql-devel 库文件所...

    PHP编译configure时常见错误的总结

    14. **错误:Configure: error: Cannot find MySQL header files** 这通常意味着MySQL开发库未安装。在CentOS上,可以运行`yum install mysql-devel`;在Debian系统中,使用`apt-get install libmysqlclient-dev`来...

    svn安装过程中遇到错误需要的文件包

    错误 configure: error: could not find library containing RSA_new: 错误 configure: error: no XML parser was found: expat or libxml 2.x required 解放方法: ...

    编译PHP报错configure error Cannot find libmysqlclient under usr的解决方法

    在PHP的mysqli扩展中,如果遇到“configure: error: wrong mysql library version or lib not found”错误,可能还需要在mysqli扩展目录下进行以下操作: 1. **切换到mysqli扩展目录**:`cd /usr/local/src/...

    libmount-2.32.tar.gz

    然而,当我们尝试编译和安装这个版本时,可能会遇到“configure: error: *** Could not find libmount”这样的错误提示,这通常是由于系统环境配置不完整或者依赖关系未满足所导致的。 首先,我们要明白“configure...

    Linphone编译错误及解决方法

    7. configure: error: Could not find libavcodec (from ffmpeg) headers and library. This is mandatory for video support 错误原因:缺少libavcodec头文件和库文件。 解决方法:sudo apt-get install ...

    php源代码安装常见错误与解决办法分享

    16. **错误:Configure: error: Cannot find MySQL header files under /usr. Note that the MySQL client library is not bundled anymore!** 解决:再次确认是否已安装`mysql-devel`,如果没有,运行`yum install...

    Arm板Apache+PHP环境搭建

    configure: error: cannot check for file existence when cross compiling的错误。 2. 需要添加ac_cv_func_setpgrp_void=yes选项,以避免出现checking whether setpgrp takes no argument... configure: error: ...

    风格的风格的

    - 在配置过程中,可能会出现提示找不到MySQL头文件的情况:`configure: error: Cannot find MySQL header files under /var/lib/mysql/`。 - 解决方法:确保MySQL-devel包已安装,并且在`configure`命令中正确指定...

    suse系统ssh升级压缩包.tar

    本升级包中包含openssh-8.1p1.tar.gz openssl-1.1.1b.tar.gz zlib-1.2.11.tar.gz等3个源码资源包。

    device-mapper.1.02.28.tgz

    在编译parted-3.2时,报错:configure: error: libdevmapper could not be found,找到device-mapper.1.02.28,并下了下来。 这个源码藏得有点深,分享出来给大家

    gcc-4.9.4安装包

    在编译安装软件的时候,发现错误configure: error: *** A compiler with support for C++11 language features is required. 要支持C++11,必须升级到gcc4.7以上。

    apache2.4完整安装

    ### Apache2.4完整安装及解决configure: error: APR-util not found问题 #### 一、背景介绍 Apache HTTP Server(通常简称为Apache)是目前最流行的Web服务器软件之一,广泛应用于互联网上的各种网站和应用程序。...

    为PHP安装imagick时出现Cannot locate header file MagickWand.h错误的解决方法

    然而,在安装`imagick`扩展时,可能会遇到各种问题,其中一种常见的错误是“Cannot locate header file MagickWand.h”。这通常意味着编译器在指定的路径下找不到必要的头文件,导致配置过程失败。 当安装`imagick`...

    Linux 开发板移植gdb

    开发板没有gdb,写程序老出错而且找不到问题在哪里。于是痛定思痛,决定移植一个gdb。 交叉编译器:arm-none-linux-gnueabi ...(3)./configure –host=arm-none-linux-gnueabi –prefix=$PWD/install –wi

    gcc_4.9.4_gcc+gmp+mpfr+mpc.tar.gz

    编译安装软件的时候,发现错误configure: error: *** A compiler with support for C++11 language features is required. 原来是gcc版本太低了,我的版本是gcc version 4.6.3 想要支持C++11,必须升级到gcc4.8...

    安装lamp报错信息及解决方法

    /use/lib//usr/lib/libdb-4.2.so: could not read symbols: File in wrong format Notice: Following unknown configure ...configure: error: mysql configure failed. Please check config.log for more information

    gmp 5.0.4 安装GCC必需文件

    安装GCC必需的三个文件(gmp、mpfr、mpc)之一,gmp,安装此库之前需要先安装M4,否则无法完成安装。另:上述文件我已上传至我的资源,如有需要下载即可。 GMP is a free library for arbitrary precision ...

    mysql安装缺失库解决办法

    MySQL是一款广泛使用的开源关系型数据库管理系统,其稳定性和性能深受开发者喜爱。然而,在安装过程中,有时会遇到一些依赖库缺失的问题,导致安装无法顺利进行。本文将深入探讨MySQL安装过程中遇到的“vcruntime140...

Global site tag (gtag.js) - Google Analytics