zoukankan      html  css  js  c++  java
  • 源码安装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  #注意路径
  • 相关阅读:
    sql server delete语句
    sql server 通配符
    sql server join联结
    windows下如何使用两个版本的nodejs
    PHP的Trait 特性
    PHP错误与异常处理try和catch
    laravel belongsTo()&hasOne()用法详解
    Laravel Model 的 fillable (白名单)与 guarded (黑名单)
    js原生,缓动动画封装
    js原生轮播图
  • 原文地址:https://www.cnblogs.com/new-journey/p/10557373.html
Copyright © 2011-2022 走看看