Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-5415

configure fails to detect missing postgresql dev libraries

XMLWordPrintable

      quite wierd, i have some autobuild @work on Redhat 5 / Solaris 10, but now i try @home

      $ ./configure --enable-server --with-postgresql
      ...
      Configuration:
      Detected OS: linux-gnu
      Install path: /usr/local
      Compilation arch: linux
      Compiler: gcc
      Compiler flags: -g -O2 -I <= empty include path
      Enable server: yes
      Server details:
      With database: PostgreSQL
      WEB Monitoring via: no
      Native Jabber: no
      SNMP: no
      IPMI: no
      SSH: no
      Linker flags: -rdynamic -L <= empty lib path
      Libraries: -lm -lrt -lresolv -lpq
      Enable proxy: no
      Enable agent: no
      Enable Java gateway: no
      LDAP support: no
      IPv6 support: no

      $ make
      Making all in src
      make[1]: Entering directory `/home/dakol/dl/zabbix-2.0.2/src'
      Making all in libs
      make[2]: Entering directory `/home/dakol/dl/zabbix-2.0.2/src/libs'
      Making all in zbxcrypto
      make[3]: Entering directory `/home/dakol/dl/zabbix-2.0.2/src/libs/zbxcrypto'
      gcc -DHAVE_CONFIG_H -I. -I../../../include -g -O2 -I -MT md5.o -MD -MP -MF .deps/md5.Tpo -c -o md5.o md5.c
      gcc: error: md5.o: No such file or directory
      make[3]: *** [md5.o] Error 1
      make[3]: Leaving directory `/home/dakol/dl/zabbix-2.0.2/src/libs/zbxcrypto'
      make[2]: *** [all-recursive] Error 1
      make[2]: Leaving directory `/home/dakol/dl/zabbix-2.0.2/src/libs'
      make[1]: *** [all-recursive] Error 1
      make[1]: Leaving directory `/home/dakol/dl/zabbix-2.0.2/src'
      make: *** [all-recursive] Error 1

      I then install the missing libpq-dev and configure says:
      Compiler: gcc
      Compiler flags: -g -O2 -I/usr/include/postgresql <= ok
      Enable server: yes
      Server details:
      With database: PostgreSQL
      WEB Monitoring via: no
      Native Jabber: no
      SNMP: no
      IPMI: no
      SSH: no
      Linker flags: -rdynamic -L/usr/lib <= ok
      Libraries: -lm -lrt -lresolv -lpq <= ok

      trying with --with-mysql, configure correctly detect missing dev/lib
      checking for mysql_config... no
      configure: error: MySQL library not found

            Unassigned Unassigned
            dakol dakol
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: