Ad Widget

Collapse

Compiling 1.4.6

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tige
    Junior Member
    • Aug 2008
    • 4

    #1

    Compiling 1.4.6

    Hello,

    I've been trying to compile 1.4.6 on a Slackware machine using Curl 7.18.2, MySQL 5.0.67, NetSNMP 5.4.1.2, and PHP 4.4.9.

    Here are the configuration settings for all components:
    OpenSSL 0.9.8h
    ==============
    ./configure --prefix=/usr/local/openssl-0.9.8h zlib shared
    sudo make
    sudo make install

    MySQL 5.0.67
    ============
    ./configure --prefix=/usr/local/mysql/5.0.67
    make
    make install

    Apache 2.0.59
    =============
    ./configure --enable-so \
    --enable-ssl \
    --with-ssl=/usr/local/openssl-0.9.8h \
    --with-mpm=prefork \
    --prefix=/usr/local/apache2
    make
    sudo make install

    PHP 4.4.9
    =========
    sudo ./configure --prefix=/usr/local/php-4.4.9
    --with-libdir=/usr/local/mysql/5.0.67/lib/mysql \
    --with-apxs2=/usr/local/apache_2.0.63/bin/apxs \
    --with-openssl=/usr/local/openssl-0.9.8h \
    --with-zlib \
    --enable-bcmath \
    --with-gd \
    --with-mysql=/usr/local/mysql/5.0.67
    sudo make
    sudo make install

    Curl 7.18.2
    ===========
    ./configure --prefix=/usr/local/curl-7.18.2 \
    --with-ssl=/usr/local/openssl-0.9.8h \
    --with-zlib=/home/tdc/src/zlib \
    --libdir=/usr/local/openssl-0.9.8h/lib \
    --disable-staic
    make
    sudo make install

    Net-SNMP 5.4.1.2
    ================
    ./configure --prefix=/usr/local/net-snmp-5.4.1.2
    make
    sudo make install

    Zabbix 1.4.6
    ============
    ./configure --enable-server \
    --with-libcurl=/usr/local/curl-7.18.2/bin/curl-config \
    --with-net-snmp=/usr/local/net-snmp-5.4.1.2/bin/net-snmp-config \
    --with-mysql=/usr/local/mysql/5.0.67/bin/mysql_config


    The error message I'm getting from Zabbix is:
    checking for net-snmp-config... /usr/local/net-snmp-5.4.1.2/bin/net-snmp-config
    checking for main in -lnetsnmp ... no
    configure: error: Not found NET-SNMP library

    Why is the configure script not finding libnetsnmp.so library in /usr/local/net-snmp-5.4.1.2/lib? I've also set the major library directories for compiled components into the LD_LIBRARY_PATH:

    export LD_LIBRARY_PATH=/usr/local/openssl-0.9.8h/lib:/usr/local/mysql/5.0.67/lib/mysql:/usr/local/net-snmp-5.4.1.2/lib

    Any insight is greatly appreciated.

    Tige
  • loophole
    Junior Member
    • Feb 2008
    • 20

    #2
    Just for a shot. You don't stat /usr/local/net-snmp-5.4.1.2/lib as the path for the --with-net-snmp config option of zabbix.
    you give /usr/local/net-snmp-5.4.1.2/bin/net-snmp-config as Path

    Might be...

    Greetings loophole

    Comment

    • richlv
      Senior Member
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Oct 2005
      • 3112

      #3
      check config.log for the exact error, paste that (just don't paste whole log =) )
      Zabbix 3.0 Network Monitoring book

      Comment

      Working...