一、zabbix3.x安裝出現“configure: error: Not found mysqlclient library”的解決辦法
1、編譯安裝zabbix-server出現
編譯時加參數:--with-mysql
在編譯時,可能會出現題目中所示的錯誤,可以通過安裝mysql-devel這個庫解決:
yum install mysql-devel -y
注:如果出現“configure: error : Not found NET-SNMP library”,那么可以安裝“net-snmp-devel”來解決:
yum install net-snmp-devel -y
二、編譯安裝zabbix 3.x 報錯誤提示 error: MySQL library not found
./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
原因:這種情況有可能是編譯選項路徑不對或者錯誤,也可直接用默認參數:--with-mysql ,但要讓得安裝 mysql-devel 連接數據庫的庫。
yum install mysql-devel -y