[服務架設][系統][LINUX]安裝 PHP 時出現error: Cannot find MySQL header files under yes的錯誤訊息
2008-04-03 11:24
866 查看
安裝 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
(Modified by [jjdai] from 61.230.200.214 at 2007-06-04 23:48:39)
就出現以下錯誤訊息:
.....
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)
相关文章推荐
- 安裝 PHP时出现error: Cannot find MySQL header files under yes
- linux下安装php报错configure: error: Cannot find MySQL header files under /usr/include/mysql.
- linux下安装php报错configure: error: Cannot find MySQL header files under /usr/include/mysql.
- 【linux】安裝 PHP时出现error: Cannot find MySQL header files
- linux下面安装PHP时,提示:configure: error: Cannot find MySQL header files
- 编译php时出现“configure: error: Cannot find MySQL header files under”
- 编译PHP时:configure: error: Cannot find MySQL header files under /usr/mysql
- 编译PHP错误Cannot find MySQL header files under yes.
- 编译PHP时提示:configure: error: Cannot find MySQL header files under /usr. 解决
- 安装centos 5下编译安装PHP时报错configure: error: Cannot find MySQL header files under
- 编译安装php Cannot find MySQL header files under /usr/include/mysql.
- 安装PDO_MYSQL遇到的问题:error: Cannot find MySQL header files under
- 编译php时提示“Cannot find MySQL header files”的解决方法
- php5 ./configure error: Cannot find MySQL header files
- 编译PHP报错configure error Cannot find libmysqlclient under usr的解决方法
- PHP编译报错configure: error: Cannot find libmysqlclient under 解决方法
- 64位centos上nginx,php编译安装遇configure: error: Cannot find libmysqlclient under /usr 错误解决
- 编译安装php时提示Cannot find MySQL header files的解决方法
- 编译安装php时提示Cannot find MySQL header files的解决方法
- 编译PHP报错configure error Cannot find libmysqlclient under usr的解决方法