ZABBIX Forums  

Go Back   ZABBIX Forums > Zabbix in Your Language > 中文论坛

Reply
 
Thread Tools Display Modes
  #1  
Old 03-12-2016, 11:21
bjfantasy bjfantasy is offline
Junior Member
 
Join Date: Dec 2016
Posts: 2
Default 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)


请问大神们这个改怎么去弄
Reply With Quote
  #2  
Old 07-10-2017, 12:44
long.chen long.chen is offline
Junior Member
 
Join Date: Mar 2017
Posts: 13
Default

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

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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:02.