1. 程式人生 > >編譯安裝zabbix error: MySQL library not found

編譯安裝zabbix error: MySQL library not found

編譯安裝zabbix error

編譯安裝zabbix error: MySQL library not found

本人用編譯方式安裝的mysql ,用編譯安裝zabbix 時,使用的編譯選項為
./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql=/usr/bin/mysql_config_editor --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2
報checking for mysql_config... configure: error: MySQL library not found

技術分享圖片
技術分享圖片

經過從網查詢,這種情況有可能是編譯選項路徑不對或者錯誤,默認是這條選項
--with-mysql,我根據自己的路徑修改為--with-mysql=/usr/bin/mysql_config_editor
技術分享圖片

技術分享圖片
註:修改完路徑之後,編譯正常通過。

編譯安裝zabbix error: MySQL library not found