Ad Widget

Collapse

Zabbix 3.0.3: Problem with make install

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DiViNe
    Member
    • Feb 2015
    • 30

    #1

    Zabbix 3.0.3: Problem with make install

    Hello

    I've encountered two problems while installing zabbix. I've "solved" the first one, but an other occured.
    1) Ist my solution for the first prolem OK?
    2) How to fix the " ../../../include/zbxodbc.h:23:17: fatal error: sql.h: No such file or directory" problem?
    ODBC is installed and works. Details in the attached file "zbx.odbc.txt"

    Thanks for the help.

    Centos 7.2
    Zabbix 3.0.3
    No Zabbix installed on this server

    Installed:
    gcc
    mysql
    mysql-community-devel.x86_64
    libxml2-devel
    net-snmp-devel
    libssh2-devel.x86_64
    libssh2-docs.noarch
    OpenIPMI-devel.x86_64
    OpenIPMI-libs.x86_64
    openldap-devel.x86_64
    libcurl-devel.x86_64

    Configure input:
    /source/zabbix-3.0.3/configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql=/usr/bin/mysql_config --with-net-snmp --with-libcurl --with-libxml2 --with-ssh2 --with-openipmi --with-ldap --with-unixodbc

    Configure output:
    Check attached file zbx_output.txt

    Make:
    make install
    Making install in src
    make[1]: Entering directory `/root/src'
    Making install in libs
    make[2]: Entering directory `/root/src/libs'
    Making install in zbxcrypto
    make[3]: Entering directory `/root/src/libs/zbxcrypto'
    gcc -DHAVE_CONFIG_H -I. -I/source/zabbix-3.0.3/src/libs/zbxcrypto -I../../../include -g -O2 -I/usr/include -MT libzbxcrypto_a-md5.o -MD -MP -MF .deps/libzbxcrypto_a-md5.Tpo -c -o libzbxcrypto_a-md5.o `test -f 'md5.c' || echo '/source/zabbix-3.0.3/src/libs/zbxcrypto/'`md5.c
    /source/zabbix-3.0.3/src/libs/zbxcrypto/md5.c:54:20: fatal error: common.h: No such file or directory
    #include "common.h"
    ^
    compilation terminated.
    make[3]: *** [libzbxcrypto_a-md5.o] Error 1
    make[3]: Leaving directory `/root/src/libs/zbxcrypto'
    make[2]: *** [install-recursive] Error 1
    make[2]: Leaving directory `/root/src/libs'
    make[1]: *** [install-recursive] Error 1
    make[1]: Leaving directory `/root/src'

    make: *** [install-recursive] Error 1


    I tried that:
    export LIBS=-lpthread
    Didn't work. So i tried that:
    vi /source/zabbix-3.0.3/src/zabbix_server/Makefile.in
    old:
    LIBS = @LIBS@
    new:
    LIBS = -lm -lresolv
    I don't know what this does but it worked. So I tried it again:
    /source/zabbix-3.0.3/configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql=/usr/bin/mysql_config --with-net-snmp --with-libcurl --with-libxml2 --with-ssh2 --with-openipmi --with-ldap --with-unixodbc

    OK. Again. So:
    make install

    Next problem
    Output make install:
    In file included from odbc.c:25:0:
    ../../../include/zbxodbc.h:23:17: fatal error: sql.h: No such file or directory
    #include <sql.h>
    ^
    compilation terminated.
    make[3]: *** [libzbxdbhigh_a-odbc.o] Error 1
    make[3]: Leaving directory `/source/zabbix-3.0.3/src/libs/zbxdbhigh'
    make[2]: *** [install-recursive] Error 1
    make[2]: Leaving directory `/source/zabbix-3.0.3/src/libs'
    make[1]: *** [install-recursive] Error 1
    make[1]: Leaving directory `/source/zabbix-3.0.3/src'
    make: *** [install-recursive] Error 1
    Attached Files
  • jan.garaj
    Senior Member
    Zabbix Certified Specialist
    • Jan 2010
    • 506

    #2
    You are compiling = you need devel packages =>probably unixODBC-devel package.

    Eventually compare you commands with https://github.com/monitoringartist/...rfile#L183-189 - this one works.
    Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
    My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

    Comment

    • DiViNe
      Member
      • Feb 2015
      • 30

      #3
      Thank you sir

      Hi jan.garaj

      Thank you for you input. You've been right, it was this package.

      But after that, a new error occured:
      Code:
      /bin/ld: ../../src/libs/zbxmodules/libzbxmodules.a(modules.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
      /bin/ld: note: 'dlclose@@GLIBC_2.2.5' is defined in DSO /lib64/libdl.so.2 so try adding it to the linker command line
      /lib64/libdl.so.2: could not read symbols: Invalid operation
      Maybe we try to install it from package....

      Comment

      • DmitryL
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • May 2016
        • 278

        #4
        Hi DiViNe!

        Please try to install lua package.

        Best regards,
        Dmitry

        Comment

        Working...