首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式碼之家 >> 編程語言 >  >> 網頁程式設計 >> PHP 程式設計 >> PHP 綜合知識

PHP 編譯擴充 mysql 模組報錯:configure: error: mysql configure failed 解決

     編輯:PHP 綜合知識

編譯 PHP mysql 擴充模組時參數名稱錯誤導致 configure 失敗。

錯誤指令

./configure --with-php-config=/usr/local/bin/php-config --with-mysql=/usr --with-zlib-dir

正確指令

./configure --with-php-config=/usr/local/bin/php-config --with-mysql-dir=/usr --with-zlib-dir

說明

  • 參數為 --with-mysql-dir 指定 MySQL 安裝目錄,非 --with-mysql。
  • 同理其他擴充模組常用 --with-xxx-dir 指定路徑。
  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式碼之家 All Rights Reserved