Ad Widget

Collapse

zabbix 1.8.2 configure error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yjeff
    Junior Member
    • Aug 2008
    • 12

    #1

    zabbix 1.8.2 configure error

    OS: redhat5.2-x86_64
    When I run configure command: configure --enable-server --with-mysql,the output are:
    checking for the version of libcurl... 7.15.5
    checking for libcurl >= version 7.13.1... yes
    checking for main in -lcurl... no
    configure: error: Not found libcurl library

    I check the curl package, they are already installed(x86_64):
    curl-devel-7.15.5-2.el5
    curl-7.15.5-2.el5

    If I run configure like this : configure --enable-server --with-mysql --enable-static, the output are:
    checking for libcurl >= version 7.13.1... yes
    checking for main in -lgssapi_krb5 ... yes
    checking for main in -lkrb5 ... yes
    checking for main in -lk5crypto ... yes
    checking for main in -lcom_err ... no
    configure: error: Not found com_err library

    And I check the /lib64 and found the libcomm_err.so library.

    How shoud I do to resolve the problem?

    Thank you !
  • NOB
    Senior Member
    Zabbix Certified Specialist
    • Mar 2007
    • 469

    #2
    Hi

    what is the contents of config.log (look for the pattern "-lcurl" in that file) ?

    Are all dependencies of libcurl and libcurl-devel installed ?

    I had a similar problem with compiling the zabbix proxy on RedHat 5.3.
    The output of net-snmp-config was simply wrong and I had to fix it.

    Regards

    Norbert.

    Comment

    • yjeff
      Junior Member
      • Aug 2008
      • 12

      #3
      the contents of config.log:

      configure:10909: checking for main in -lcurl
      configure:10938: gcc -o conftest -g -O2 -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -L/usr/kerberos/lib64 -lcurl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -ldl -lidn -lssl -lcrypto -lz conftest.c -lcurl -lm -lresolv >&5
      /usr/bin/ld: skipping incompatible /usr/kerberos/lib64/libcurl.so when searching for -lcurl
      /usr/bin/ld: skipping incompatible /usr/kerberos/lib64/libcurl.a when searching for -lcurl
      /usr/bin/ld: skipping incompatible /usr/lib64/libcurl.so when searching for -lcurl
      /usr/bin/ld: skipping incompatible /usr/lib64/libcurl.a when searching for -lcurl
      /usr/bin/ld: cannot find -lcurl
      collect2: ld returned 1 exit status

      Comment

      Working...