浏览器运行环境异常,请检查是否开启本站的JavaScript权限或下载最新版浏览器
zabbix编译错误及解决方法

zabbix编译错误及解决方法

I used to compile Zabbix from sources for working and for testing purposes.

In my opinion, this is the best way of Zabbix Server or Proxy installation, as you specify only particular features without relying on package options.

For advanced configuration, additional system libraries should be installed, otherwise, you’ll receive a dependency error.

So I’ve decided to check each compilation option and figure out which system library is required.

The installation has been tested using the following environments:

  • Operation systems: Ubuntu 16.04.1 LTS / CentOS 7.2.1511 (Core)
  • Software: Zabbix 3.0.4 LTS

I’ve created a list with detailed information for each tested configuration flag:

Error:--with-ibm-db2 configure: error: IBM DB2 library not found

Fix: Check if DB2 CLI present in PATH. Otherwise, download IBM Data Server Driver for ODBC and CLI (CLI Driver)

Error: --with-oracle configure: error: Oracle OCI library not found

Fix: Download and install Oracle Instant Client

Error:--with-mysql configure: error: MySQL library not found

Fix: sudo apt-get install libmysqld-dev / sudo yum install mysql-devel

Note: in CentOS 7 MySQL replaced by MariaDB so mariadb-devel will be installed

Error:--with-postgresql configure: error: PostgreSQL library not found

Fix: sudo apt-get install libpq-dev / sudo yum install postgresql-devel

Error:--with-sqlite3 configure: error: SQLite3 library not found

Fix: sudo apt-get install libsqlite3-dev / sudo yum install sqlite-devel

Error:--with-jabber configure: error: Jabber library not found

Fix: sudo apt-get install libiksemel-dev then try -with-jabber=/usr/ use RPM’s from zabbix repos

Error:--with-libxml2 configure: error: LIBXML2 library not found

Fix: sudo apt-get install libxml2-dev / sudo yum install libxml2-devel

Error:--with-unixodbc configure: error: unixODBC library not found

Fix:sudo apt-get install unixodbc-dev / sudo yum install unixODBC-devel

Error:--with-net-snmp configure: error: Invalid Net-SNMP directory - unable to find net-snmp-config

Fix: sudo apt-get install libsnmp-dev snmp / sudo yum install net-snmp-devel net-snmp

Note: I’d recommend installing snmp/net-snmp within devel packages just to avoid the error of loading MIBs during Zabbix Server/Proxy first startup.

Error:--with-ssh2 configure: error: SSH2 library not found

Fix: sudo apt-get install libssh2–1-dev / sudo yum install libssh2-devel

Error:--with-openipmi configure: error: Invalid OPENIPMI directory - unable to find ipmiif.h

Fix: sudo apt-get install libopenipmi-dev / sudo yum install OpenIPMI-devel

Error:--with-ldap configure: error: Invalid LDAP directory - unable to find ldap.h

Fix: sudo apt-get install libldap2-dev / sudo yum install openldap-devel

Error:--with-libcurl configure: error: Curl library not found

Fix: sudo apt-get install libcurl4-openssl-dev / sudo yum install libcurl-devel

Error:--with-mbedtls configure: error: mbed TLS (PolarSSL) library libpolarssl not found

Fix: Best options is to install mbed TLS from sources

Note: Currently Zabbix supports 1.3.X version only. See more here.

Error:--with-gnutls configure: error: GnuTLS library libgnutls not found

Fix: sudo apt-get install libgnutls-dev / sudo yum install gnutls-devel

Error:configure: error: Unable to use libevent (libevent check failed)

Fix: sudo apt-get install libevent-dev / -

源文章URL:网页链接(medium.com)

此页面仅作备份使用

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得UP主同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理: DMCA投诉/Report
赞 1
踩 1
评论
收藏
评论区
晓雾觉得你应该发点骚的
因为评论区空空如也