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 / -





2023-7-23 12:24:44



2023-10-5 0:55:56

0 条回复 A文章作者 M管理员
有新私信 私信列表