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
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
Comment