報錯1:checking for mysql_config... configure: error: MySQL library not found
解決辦法:查找mysql_config
#find / -name "mysql_config*"
/usr/local/mysql/bin/mysql_config
在配置時將原有的 --with-mysql?改為? --with-mysql=/usr/local/mysql/bin/mysql_config
?
常規報錯及解決辦法:
configure: error: Not found mysqlclient library #yum -y install mysql-develconfigure: error: LIBXML2 library not found #yum -y install libxml2-develconfigure: error: unixODBC library not found # yum -y install unixODBC-develconfigure: error: Invalid Net-SNMP directory - unable to find net-snmp-config #yum -y install net-snmp-develconfigure: error: Invalid OPENIPMI directory - unable to find ipmiif.h #yum -y install OpenIPMI-develconfigure: error: Curl library not found #yum -y install curl-devel
報錯:checking for SSH2 support... no
configure: error: SSH2 library not found
解決:yum -y install libssh2-devel
?
報錯:checking for LDAP support... no
configure: error: Invalid LDAP directory - unable to find ldap.h
解決:yum -y install openldap openldap-devel
?
報錯:/usr/local/zabbix/missing: line 81: aclocal-1.14: command not found
進入對應的/usr/local/zabbix目錄執行:
autoreconf -vfi
?
如果PHP是7以上的版本,進入頁面可能會出現報錯:A non well formed numeric value encountered [zabbix.php:21 → require_once() → ZBase->run() → ZBase->
解決辦法:找到對應的路徑執行
sed -i '/$last = strtolower(substr($val, -1));/a$val = substr($val,0,-1);' /home/www/zabbix/include/func.inc.php #注意路徑
?