[服務架設][系統][LINUX]安裝 PHP 時出現error: Cannot find MySQL header files under yes的錯誤訊息
来源:互联网 发布:多益网络邮箱 编辑:程序博客网 时间:2024/06/07 14:32
安裝 PHP 時,剛執行 ./configure --with-apxs2=/usr/local/Apache2/bin/apxs --with-mysql
就出現以下錯誤訊息:
.....
checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
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.
解法:
o 如果不知道 header file 在哪,用 「find / -name mysql.h」命令找出其位置;
o 如果是自己也有手動安裝 MySQL 套件的話,直接指定該位置。
在 ./configure 下參數指定 header file 的位置,如下:
./configure --with-apxs2=/usr/local/Apache2/bin/apxs --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config
這篇文章的關鍵字:
PHP install (PHP安裝), MySQL header files
就出現以下錯誤訊息:
.....
checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
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.
解法:
o 如果不知道 header file 在哪,用 「find / -name mysql.h」命令找出其位置;
o 如果是自己也有手動安裝 MySQL 套件的話,直接指定該位置。
在 ./configure 下參數指定 header file 的位置,如下:
./configure --with-apxs2=/usr/local/Apache2/bin/apxs --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config
這篇文章的關鍵字:
PHP install (PHP安裝), MySQL header files
(Modified by [jjdai] from 61.230.200.214 at 2007-06-04 23:48:39)
- [服務架設][系統][LINUX]安裝 PHP 時出現error: Cannot find MySQL header files under yes的錯誤訊息
- 安裝 PHP时出现error: Cannot find MySQL header files under yes
- linux下安装php报错configure: error: Cannot find MySQL header files under /usr/include/mysql.
- 编译PHP时:configure: error: Cannot find MySQL header files under /usr/mysql
- 编译php时出现“configure: error: Cannot find MySQL header files under”
- 编译PHP时提示:configure: error: Cannot find MySQL header files under /usr. 解决
- linux下面安装PHP时,提示:configure: error: Cannot find MySQL header files
- php5 ./configure error: Cannot find MySQL header files
- 编译安装php时提示Cannot find MySQL header files的解决方法
- 编译安装php时提示Cannot find MySQL header files的解决方法
- configure: error: Cannot find libmysqlclient under /usr/local/mysql.
- ERROR: cannot find MySQL include files 安装 coreseek-3.2.14 遇到的问题及解决
- configure: error: Cannot find libmysqlclient under /usr
- 安装PHP出现错误:Cannot find MySQL header
- Cannot find libmysqlclient_r under usr/local/mysql
- PHP编译报错configure: error: Cannot find libmysqlclient under 解决方法
- configure: error: Cannot find libmysqlclient under /usr 解决
- 解决configure: error: Cannot find libmysqlclient under /usr.
- 在windows xp下用vs2005编译perl模块的要点
- javaScript 对象大全 (javascript code al 2)(转转)
- SqlServer下数据库链接的使用方法
- STL 5: STL之迭代器
- 将SQL Server 2005中的数据同步到Oracle中
- [服務架設][系統][LINUX]安裝 PHP 時出現error: Cannot find MySQL header files under yes的錯誤訊息
- 自增字段 - Oracle 学习笔记 4
- Trinity Rescue Kit
- 开始学习Rails了
- 热烈庆祝自己的blog的点击量突破5000
- DB2中如何取得随机数
- .NET开发 程序员必备工具 -- Regulator:生成正则表达式工具
- HTTP/1.1 Cache-Control 标头的设定参数
- flex中不加载字库,让文字转向(rotation)