Ad Widget

Collapse

Problem with make and install zabbix-2.0.2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • usbport
    Junior Member
    • Aug 2012
    • 4

    #1

    Problem with make and install zabbix-2.0.2

    Good day.

    I'm trying to install zabbix 2.0.2
    Debian GNU/Linix 6.0; 2.6.32-5-686

    Zabbix sources get from here: http://sourceforge.net/projects/zabb...ar.gz/download

    Manual from here: http://www.zabbix.com/documentation/...lation/install
    Step: 5 Make and install everything

    Using configure options:
    root@ZabbixServer:/# /home/user/zabbix-2.0.2/configure --enable-server --enable-agent --with-net-smtp --with-mysql --with-libcurl --with-jabber

    Make install results:
    root@ZabbixServer:/# make install
    Making install in src
    make[1]: Entering directory `/src
    Making install in libs
    make[2]: Entering directory `/src/libs
    Making install in zbxcrypto
    make[3]: Entering directory `/src/libs/zbxcrypto'
    source='/home/user/zabbix-2.0.2/src/libs/zbxcrypto/md5.c' object='md5.o' libtool=no \
    DEPDIR=.deps depmode=none /bin/bash /home/user/zabbix-2.0.2/depcomp \
    gcc -DHAVE_CONFIG_H -I. -I/home/user/zabbix-2.0.2/src/libs/zbxcrypto -I../../../include -g -O2 -I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing -DUNIV_LINUX -DUNIV_LINUX -c /home/user/zabbix-2.0.2/src/libs/zbxcrypto/md5.c
    /home/user/zabbix-2.0.2/src/libs/zbxcrypto/md5.c:54:20: error: common.h: No such file or directory
    /home/user/zabbix-2.0.2/src/libs/zbxcrypto/md5.c:55:17: error: md5.h: No such file or directory
    /home/user/zabbix-2.0.2/src/libs/zbxcrypto/md5.c:133: error: expected ‘)’ before ‘*’ token
    /home/user/zabbix-2.0.2/src/libs/zbxcrypto/md5.c:314: error: expected ‘)’ before ‘*’ token
    /home/user/zabbix-2.0.2/src/libs/zbxcrypto/md5.c:324: error: expected ‘)’ before ‘*’ token
    /home/user/zabbix-2.0.2/src/libs/zbxcrypto/md5.c:362: error: expected ‘)’ before ‘*’ token
    make[3]: *** [md5.o] Error 1
    make[3]: Leaving directory `/src/libs/zbxcrypto'
    make[2]: *** [install-recursive] Error 1
    make[2]: Leaving directory `/src/libs'
    make[1]: *** [install-recursive] Error 1
    make[1]: Leaving directory `/src'
    make: *** [install-recursive] Error 1

    Files common.h and md5.h are existing in directory /usr/zabbix-2.0.2/include

    How solve this problem?
    Last edited by usbport; 15-08-2012, 14:03.
  • usbport
    Junior Member
    • Aug 2012
    • 4

    #2
    Fixed these errors.

    Need copy all include files and directories from zabbix dir to usr dir.
    In my case from /home/user/zabbix-2.0.2/include to /usr/local/include.

    But after that i'm recive new errors:
    make[2]: *** No rule to make target `/home/user/zabbix-2.0.2/src/libs/zbxsysinfo/libzbxagentsysinfo.a', needed to `zabbix_agent'. Stop.
    make[2]: Leaving directory `/home/user/zabbix-2.0.2/include/src/zabbix_agent'
    make[1]: *** [install-recursive] Error 1
    make[1]: Leaving directory `/home/user/zabbix-2.0.2/include/src'
    make: *** [install-recursive] Error 1

    Comment

    • usbport
      Junior Member
      • Aug 2012
      • 4

      #3
      Fixed.

      Zabbix make steps:
      0)install dev packets
      root@ZabbixServer:/# apt-get install libmysqlclient-dev
      root@ZabbixServer:/# apt-get install libiksemel-dev
      root@ZabbixServer:/# apt-get install libcurl4-openssl-dev
      root@ZabbixServer:/# apt-get install libsnmp-dev
      root@ZabbixServer:/# apt-get install libopenipmi-dev
      1)root@ZabbixServer:/home/user/zabbix-2.0.2# ./configure --enable-server --enable-agent --with-net-snmp --with-mysql --with-libcurl --with-jabber --prefix=/home/user/zabbix-2.0.2
      2)root@ZabbixServer:/home/user/zabbix-2.0.2# make
      3)root@ZabbixServer:/home/user/zabbix-2.0.2# make install
      4)edit config files
      5)start server and agent:
      root@ZabbixServer:/home/user/zabbix-2.0.2/sbin# ./zabbix_server
      root@ZabbixServer:/home/user/zabbix-2.0.2/sbin# ./zabbix_agentd
      6)root@ZabbixServer:/home/user/zabbix-2.0.2# ps -Ac

      Next your steps...
      Good luck All.

      Comment

      Working...