源码安装zabbix遇到的报错集锦

报错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-devel

configure: error: LIBXML2 library not found           #yum -y install libxml2-devel

configure: error: unixODBC library not found        # yum -y install unixODBC-devel

configure: error: Invalid Net-SNMP directory - unable to find net-snmp-config #yum -y install net-snmp-devel

configure: error: Invalid OPENIPMI directory - unable to find ipmiif.h #yum -y install OpenIPMI-devel

configure: 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  #注意路径

 

转载于:https://www.cnblogs.com/new-journey/p/10557373.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值