我是用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)
请问大神们这个改怎么去弄
我就打算重新下个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)
请问大神们这个改怎么去弄
Comment