回諸彼特租屋資訊網首頁 - 租屋,租房子,租屋網站,房屋出租  諸彼特租屋網 - 曬薪資 - 查詢薪資、職位的詳情
首頁 查詢租屋 網上資料 租屋地圖 簡介 帳號 出租房子 維護租屋資料 委託追蹤 討論區 各項統計 網站目錄 網站地圖
[會員登入|註冊]

[服務架設][系統]安裝 PHP 時出現error: Cannot find MySQL header files under yes的錯誤訊息


看板:JJDai 顯示模式設定:遞減→遞增 | 群組→非群組文章, 不能/無權限 回覆此文章
此文章群組總共有 1 編文章,以下為 1 - 1  [第1頁]:
標題:[服務架設][系統]安裝 PHP 時出現error: Cannot find MySQL header files under yes的錯誤訊息
作者:jjdai (jjdai)
時間:2007-06-04 23:38:37
來源:61.230.200.214

此文:
點閱:9162
回覆:0
[服務架設][系統][LINUX]安裝 PHP 時出現error: Cannot find MySQL header files under yes的錯誤訊息

安裝 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)
序號:#1.
設定屬性  | 搬移文章  | 刪除文章  | 修改文章  | 回應此文章

 | 


Display Page Rank
諸彼特租屋資訊網 - 租屋,租房子,租屋網站,房屋出租

諸彼特租屋資訊網

版權所有 (C) 1999-2012 Dai Juin-Jia. All Rights Reserved. - 服務條款 - Since 2000/04/06Company Logo - 諸彼特租屋資訊網
Powered by DjLibPhp