Announcement

Collapse
No announcement yet.

Support for SMTP authentication was not compiled in

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Support for SMTP authentication was not compiled in

    我是用RPM包安装zabbix3.0版本,触发发送邮件时日志中提示Support for SMTP authentication was not compiled in错误,经查询是因为CURL版本太低 7.19 ,升级到7.51后,我看网上说需要重新编译,但是RPM安装的怎么重新编译呢?

    我就打算重新下个source版本,编译无误,make install 时候,出现
    db.c:27:20: error: mysql.h: No such file or directory
    db.c:28:21: error: errmsg.h: No such file or directory
    db.c:29:27: error: mysqld_error.h: No such file or directory
    db.c:54: error: expected specifier-qualifier-list before ‘MYSQL_RES’
    db.c:96: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    db.c: In function ‘is_recoverable_mysql_error’:
    db.c:250: error: ‘conn’ undeclared (first use in this function)
    db.c:250: error: (Each undeclared identifier is reported only once
    db.c:250: error: for each function it appears in.)
    db.c:252: error: ‘CR_CONN_HOST_ERROR’ undeclared (first use in this function)
    db.c:253: error: ‘CR_SERVER_GONE_ERROR’ undeclared (first use in this function)
    db.c:254: error: ‘CR_CONNECTION_ERROR’ undeclared (first use in this function)
    db.c:255: error: ‘CR_SERVER_LOST’ undeclared (first use in this function)
    db.c:256: error: ‘CR_UNKNOWN_HOST’ undeclared (first use in this function)
    db.c:257: error: ‘CR_COMMANDS_OUT_OF_SYNC’ undeclared (first use in this function)
    db.c:258: error: ‘ER_SERVER_SHUTDOWN’ undeclared (first use in this function)
    db.c:259: error: ‘ER_ACCESS_DENIED_ERROR’ undeclared (first use in this function)
    db.c:260: error: ‘ER_ILLEGAL_GRANT_FOR_TABLE’ undeclared (first use in this function)
    db.c:261: error: ‘ER_TABLEACCESS_DENIED_ERROR’ undeclared (first use in this function)
    db.c:262: error: ‘ER_UNKNOWN_ERROR’ undeclared (first use in this function)
    db.c: In function ‘zbx_db_connect’:
    db.c:287: error: ‘my_bool’ undeclared (first use in this function)
    db.c:287: error: expected ‘;’ before ‘mysql_reconnect’
    db.c:385: error: ‘conn’ undeclared (first use in this function)
    db.c:391: error: ‘CLIENT_MULTI_STATEMENTS’ undeclared (first use in this function)
    db.c:403: error: ‘MYSQL_OPT_RECONNECT’ undeclared (first use in this function)


    请问大神们这个改怎么去弄

    #2
    如果编译不成功需要下载相应的开发包,以下是一些相关的包

    Errors when recompile with source
    --with-mysql
    configure: error: MySQL library not found
    Solution: sudo apt-get install libmysqld-dev / sudo yum install mysql-devel
    Note: in CentOS 7 mysql replaced with MariaDB so mariadb-devel will be installed

    --with-postgresql
    configure: error: PostgreSQL library not found
    Solution: sudo apt-get install libpq-dev / sudo yum install postgresql-devel

    --with-jabber
    configure: error: Jabber library not found
    Solution: sudo apt-get install libiksemel-dev then try –with-jabber=/usr / for CentOS install RPM’s from zabbix repos

    --with-libxml2
    configure: error: LIBXML2 library not found
    Solution: sudo apt-get install libxml2-dev / sudo yum install libxml2-devel

    --with-unixodbc
    configure: error: unixODBC library not found
    Solution: sudo apt-get install unixodbc-dev / sudo yum install unixODBC-devel

    --with-net-snmp
    configure: error: Invalid Net-SNMP directory - unable to find net-snmp-config
    Solution: sudo apt-get install libsnmp-dev snmp / sudo yum install net-snmp-devel net-snmp
    Note: I’d recommend install snmp/net-snmp also with devel packages just to avoid error of loading MIBs during Zabbix Server/Proxy first start.

    --with-ssh2
    configure: error: SSH2 library not found
    Solution: sudo apt-get install libssh2-1-dev / sudo yum install libssh2-devel

    --with-libcurl
    configure: error: Curl library not found
    Solution: sudo apt-get install libcurl4-openssl-dev / sudo yum install libcurl-devel

    --with-mbedtls
    configure: error: mbed TLS (PolarSSL) library libpolarssl not found
    Solution: Best options is to install mbed TLS from sources
    Note: Currently Zabbix supports 1.3.X version only. See more here.

    --with-gnutls
    configure: error: GnuTLS library libgnutls not found
    Solution: sudo apt-get install libgnutls-dev / sudo yum install gnutls-devel

    --with-ldap
    configure: error: Invalid LDAP directory - unable to find ldap.h
    Solution: sudo apt-get install libldap2-dev / sudo yum install openldap-devel

    Comment

    Working...
    X