Ad Widget

Collapse

Zabbix compilation on Redhat (Fedora 7) - mysqlclient problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pikmaster
    Junior Member
    • Feb 2009
    • 12

    #1

    Zabbix compilation on Redhat (Fedora 7) - mysqlclient problem

    Whle trying to compile Zabbix 1.6.2 on Fedora 7 with MySQL, I encountered a following error during ./configure:

    Code:
    checking for main in -lmysqlclient ... no
    configure: error: Not found mysqlclient library
    I had to manually install necessary libraries

    Code:
    yum install mysqlclient14-devel
    Then add some options to compilation process:

    Code:
    LDFLAGS=-L/usr/lib/mysql4/mysql/ CPPFLAGS=-I/usr/include/mysql4/mysql ./configure --enable-server --with-net-snmp --with-libcurl --with-mysql --enable-server --enable-agent
    Another error shows:

    Code:
    checking for net-snmp-config... no
    configure: error: Invalid NET-SNMP directory - unable to find net-snmp-config
    So you have to install the net-snmp-devel package

    yum install net-snmp-devel
    Then compile again using the same command as above. It should run fine.
    Last edited by pikmaster; 26-02-2009, 15:22.
Working...