Ad Widget

Collapse

zabbix 1.4.5 cannot be compiled on freebsd7.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wlshanquan
    Junior Member
    • Mar 2008
    • 11

    #1

    zabbix 1.4.5 cannot be compiled on freebsd7.0

    zabbix 1.4.5 cannot be compiled on freebsd7.0

    I use the command:
    ./configure --enable-server --with-mysql --with-net-snmp --with-libcurl --prefix=/usr/apps/zabbix

    checking for the version of libcurl ... 7.16.3
    checking for libcurl >= 7.13.1... yes
    checking for main in -lcurl... yes
    checking whether libcurl is usable... no
    configure: error: Not found Curl library

    In the log file , I find the following words:
    checking whether libcurl is usable
    gcc -o conftest -g ......
    conftest.c:105:23: error: curl/curl.h :No such file or directory

    Following command that I have used:
    pkg_add –r curl
    cp /usr/local/lib/libcurl* /usr/lib/

    cd /usr/local/include/curl/
    ls I find the following file
    curl.h easy.h multi.h types.h curlver.h mprintf.h stdcheaders.h

    curl-config --version -----> libcurl 7.16.3
    cd /usr/local/lib/
    ls libcrul* ----->libcurl.a libcurl.la libcurl.so libcurl.so.4
    The following command have the same result:
    ./configure --enable-server --with-mysql --with-net-snmp --with-libcurl --prefix=/usr/apps/zabbix --disable-static

    Please help me!!
  • bee
    Senior Member
    • Jun 2007
    • 133

    #2
    Originally posted by wlshanquan
    I use the command:
    ./configure --enable-server --with-mysql --with-net-snmp --with-libcurl --prefix=/usr/apps/zabbix
    How about this?
    ./configure --enable-server --with-mysql=/path/of/mysql_config --with-net-snmp=/path/of/net-snmp-config --with-libcurl=/path/of/curl-config --prefix=/usr/apps/zabbix

    Also, create symlink for curl in /usr/include
    # cd /usr/include
    # ln -s /usr/local/include/curl

    Thanks,
    BEE

    Comment

    • wlshanquan
      Junior Member
      • Mar 2008
      • 11

      #3
      Re:BEE

      I used the Following command:
      # cd /usr/include
      # ln -s /usr/local/include/curl

      cd /usr/apps/install/zabbix1.4.5
      ./configure --enable-server --with-mysql --with-net-snmp --with-libcurl --prefix=/usr/apps/zabbix

      Everything is ok! But I don't know why.

      Thanks my friend!
      My MSN:[email protected]

      Comment

      • treyh
        Member
        • May 2007
        • 64

        #4
        ty for the ifo

        I'm rewriting my source howto install and needed the fix for freebsd 7.0

        Comment

        Working...