網絡技術日誌
關於 PHP, Linux, Open Source 及個人生活記載的網誌。
-
Redhat/Centos Yum 安裝 MySQL 問題
Posted on December 16th, 2011 No comments今日在一台伺服器上升級 PHP 的版本,伺服器原來已經用 Yum 安裝了 MySQL,在手動編譯 PHP 時一直出現以下錯誤訊息:
configure: error: mysql configure failed. Please check config.log for more information.
原來我在編譯 PHP 時用了錯誤的參數,原本我是用 “–with-mysql=/usr/”,要將這個參數改成 “–with-mysql-dir=/usr/” 才可以編譯成功。
