zoukankan      html  css  js  c++  java
  • 【linux】安裝 PHP时出现error: Cannot find MySQL header files

    checking for specified location of the MySQL UNIX socket... no

    checking for MySQL UNIX socket location... /tmp/mysql.sock

    configure: error: Cannot find MySQL header files under yes.

    Note that the MySQL client library is not bundled anymore.

     解法:   

    如果不知道 header file 在哪,用 「find / -name mysql.h」命令找出其位置;   

    如果是自己也有手動安裝 MySQL 套件的話,直接指定該位置。

    在 ./configure 下参数指定 header file 的位置(即mysql安装目录),如下:

    ./configure --with-apxs2=/usr/local/Apache2/bin/apxs --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config

  • 相关阅读:
    萨卡斯指法
    香港保险
    数据分析,了解行业
    数据分析师
    黑盒测试方法
    web系统的常用功能测试
    linux-磁盘问题
    mysql连表查询
    mysql模糊查询
    MySQL 数据类型
  • 原文地址:https://www.cnblogs.com/tl542475736/p/3630804.html
Copyright © 2011-2022 走看看