Ad Widget

Collapse

compilation error in zebbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sanjay-chahar
    Junior Member
    • Jul 2012
    • 3

    #1

    compilation error in zebbix

    HI
    I have trying to compile xebbix on redahat linux 5.8 and I have installed below package my box
    # rpm -qa |grep -i mysql
    MySQL-client-5.5.25a-1.linux2.6
    MySQL-devel-5.5.25a-1.linux2.6
    MySQL-shared-compat-5.5.25a-1.linux2.6
    MySQL-server-5.5.25a-1.linux2.6
    # ps -ef |grep mysqld
    root 24236 1 0 18:04 pts/3 00:00:00 /bin/sh /usr/local/mysql/bin/mysqld_safe --datadir=/usr/local/mysql/data --pid-file=/usr/local/mysql/data/.uk.pid
    mysql 24488 24236 0 18:04 pts/3 00:00:00 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=/usr/local/mysql/data/uk.err --pid-file=/usr/local/mysql/data/uk.pid --socket=/tmp/mysql.sock --port=3306
    root 29471 4249 0 19:39 pts/3 00:00:00 grep mysqld
    #

    # ./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    configure: Configuring
    checking whether make sets $(MAKE)... (cached) yes
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking for gcc... gcc
    .
    .
    .
    .

    cking for file /proc/loadavg... yes
    checking for file /proc/net/dev... yes
    checking for long long format... no
    checking for -rdynamic linking option... yes
    checking for mysql_config... /usr/bin/mysql_config
    checking for main in -lmysqlclient... yes
    checking if Oracle support is enabled... no
    checking for function PQserverVersion()... no
    checking for Zabbix server/proxy database selection... ok
    checking for multirow insert statements... yes
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for gawk... (cached) gawk
    checking for curl-config... /usr/local/bin/curl-config
    checking for the version of libcurl... 7.26.0
    checking for libcurl >= version 7.13.1... yes
    checking for main in -lcurl... yes
    checking whether libcurl is usable... no
    configure: error: libcurl is not available for dynamic linking
    [[email protected]]#

    I am getting " configure: error: libcurl is not available for dynamic linking"

    Please help me if any one have any idea

    Thanks
  • scmurcott
    Junior Member
    • Feb 2010
    • 2

    #2
    RE: compilation error in zebbix

    Just make sure you have all the development libraries installed.

    For example configure: error: libcurl is not available for dynamic linking

    What the error means is libcurl-devel is missing so it can't build the parts of the program that need those libraries.

    Comment

    • sanjay-chahar
      Junior Member
      • Jul 2012
      • 3

      #3
      Hi

      Could you please tell me which all development libraray I need because I dont have idea about same.

      Thanks

      Comment

      • sanjay-chahar
        Junior Member
        • Jul 2012
        • 3

        #4
        when I am trying to install libcurl-devel

        I am getting below error

        [root]# rpm -ivh libcurl-devel-7.21.7-5.el5.remi.2.i386.rpm
        warning: libcurl-devel-7.21.7-5.el5.remi.2.i386.rpm: Header V3 DSA signature: NOKEY, key ID 00f97f56
        error: Failed dependencies:
        libcurl = 7.21.7-5.el5.remi.2 is needed by libcurl-devel-7.21.7-5.el5.remi.2.i386
        libcurl.so.4 is needed by libcurl-devel-7.21.7-5.el5.remi.2.i386
        [root@Zabbix junk]#

        Comment

        • wwwalker
          Junior Member
          • Mar 2012
          • 1

          #5
          install libcurl

          I got this error today too.
          My env is ununtu 11.0, my step is :
          1,sudo apt-get install libcurl4-openssl-dev(don't do this, if you did, please remove this package use apt-get remove)
          2,download libcurl source code http://curl.haxx.se/download.html
          3,make and install libcurl
          4,./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl

          Resolved.
          Hope this is helpful.
          Last edited by wwwalker; 04-09-2012, 05:06.

          Comment

          Working...