Hi
I'm trying to install Zabbix 1.8 on Oracle enterprise linux 5.2, but i keep getting an error when i run the 'make install':
make[3]: Entering directory `/home/zabbix/zabbix-1.8/src/libs/zbxdb'
gcc -DHAVE_CONFIG_H -I. -I../../../include -lssl -I/usr/include/rpm -I/usr/local/include -I/usr/include/gdbm -I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE -I. -I/usr/include/net-snmp -MT db.o -MD -MP -MF .deps/db.Tpo -c -o db.o db.c
In file included from ../../../include/db.h:29,
from db.c:22:
../../../include/zbxdb.h:32:20: error: mysql.h: No such file or directory
../../../include/zbxdb.h:33:21: error: errmsg.h: No such file or directory
../../../include/zbxdb.h:34:27: error: mysqld_error.h: No such file or directory
In file included from ../../../include/db.h:29,
from db.c:22:
../../../include/zbxdb.h:36: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
../../../include/zbxdb.h:147: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
../../../include/zbxdb.h:148: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
../../../include/zbxdb.h:149: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âzbx_db_fetchâ
In file included from db.c:22:
../../../include/db.h:542: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
../../../include/db.h:544: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
../../../include/db.h:545: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âDBfetchâ
../../../include/db.h:582: error: expected declaration specifiers or â...â before âMYSQL_ROWâ
db.c:38: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
db.c: In function âzbx_db_closeâ:
db.c:53: error: âconnâ undeclared (first use in this function)
db.c:53: error: (Each undeclared identifier is reported only once
db.c:53: error: for each function it appears in.)
db.c: In function âzbx_db_connectâ:
db.c:135: error: âconnâ undeclared (first use in this function)
db.c:137: error: âCLIENT_MULTI_STATEMENTSâ undeclared (first use in this function)
db.c:161: error: âCR_CONN_HOST_ERRORâ undeclared (first use in this function)
db.c:162: error: âCR_SERVER_GONE_ERRORâ undeclared (first use in this function)
db.c:163: error: âCR_CONNECTION_ERRORâ undeclared (first use in this function)
db.c:164: error: âCR_SERVER_LOSTâ undeclared (first use in this function)
db.c:165: error: âER_SERVER_SHUTDOWNâ undeclared (first use in this function)
db.c:166: error: âER_UNKNOWN_ERRORâ undeclared (first use in this function)
db.c: At top level:
db.c:344: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
db.c: In function âzbx_db_vexecuteâ:
db.c:540: error: âconnâ undeclared (first use in this function)
db.c:551: error: âCR_CONN_HOST_ERRORâ undeclared (first use in this function)
db.c:552: error: âCR_SERVER_GONE_ERRORâ undeclared (first use in this function)
db.c:553: error: âCR_CONNECTION_ERRORâ undeclared (first use in this function)
db.c:554: error: âCR_SERVER_LOSTâ undeclared (first use in this function)
db.c:555: error: âER_SERVER_SHUTDOWNâ undeclared (first use in this function)
db.c:556: error: âER_UNKNOWN_ERRORâ undeclared (first use in this function)
db.c: At top level:
db.c:760: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âzbx_db_fetchâ
db.c:845: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
db.c: In function âzbx_db_insert_idâ:
db.c:1071: error: âconnâ undeclared (first use in this function)
db.c: At top level:
db.c:1125: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
make[3]: *** [db.o] Error 1
make[3]: Leaving directory `/home/zabbix/zabbix-1.8/src/libs/zbxdb'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/zabbix/zabbix-1.8/src/libs'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/zabbix/zabbix-1.8/src'
make: *** [install-recursive] Error 1
i run this command when i configure:
./configure --enable-server --with-mysql=/usr/bin/mysql --with-net-snmp --with-libcurl
i have set these variables:
export CFLAGS=-lssl
export LDFLAGS="-L/usr/local/lib -L/usr/lib/mysql";
export PATH=$PATH:/usr/lib/mysql:/usr/lib
I have installed these packages:
gcc-c++
libstdc++-devel
make
mysql-devel
curl-devel
openssl-devel
krb5-devel
libgssapi-devel
e2fsprogs-libs
libidn-devel
zlib-devel
net-snmp-devel
glibc-devel
Anybody know what i'm doing wrong or missing?
Thanks in advance
Lars
Denmark
I'm trying to install Zabbix 1.8 on Oracle enterprise linux 5.2, but i keep getting an error when i run the 'make install':
make[3]: Entering directory `/home/zabbix/zabbix-1.8/src/libs/zbxdb'
gcc -DHAVE_CONFIG_H -I. -I../../../include -lssl -I/usr/include/rpm -I/usr/local/include -I/usr/include/gdbm -I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE -I. -I/usr/include/net-snmp -MT db.o -MD -MP -MF .deps/db.Tpo -c -o db.o db.c
In file included from ../../../include/db.h:29,
from db.c:22:
../../../include/zbxdb.h:32:20: error: mysql.h: No such file or directory
../../../include/zbxdb.h:33:21: error: errmsg.h: No such file or directory
../../../include/zbxdb.h:34:27: error: mysqld_error.h: No such file or directory
In file included from ../../../include/db.h:29,
from db.c:22:
../../../include/zbxdb.h:36: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
../../../include/zbxdb.h:147: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
../../../include/zbxdb.h:148: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
../../../include/zbxdb.h:149: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âzbx_db_fetchâ
In file included from db.c:22:
../../../include/db.h:542: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
../../../include/db.h:544: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
../../../include/db.h:545: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âDBfetchâ
../../../include/db.h:582: error: expected declaration specifiers or â...â before âMYSQL_ROWâ
db.c:38: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
db.c: In function âzbx_db_closeâ:
db.c:53: error: âconnâ undeclared (first use in this function)
db.c:53: error: (Each undeclared identifier is reported only once
db.c:53: error: for each function it appears in.)
db.c: In function âzbx_db_connectâ:
db.c:135: error: âconnâ undeclared (first use in this function)
db.c:137: error: âCLIENT_MULTI_STATEMENTSâ undeclared (first use in this function)
db.c:161: error: âCR_CONN_HOST_ERRORâ undeclared (first use in this function)
db.c:162: error: âCR_SERVER_GONE_ERRORâ undeclared (first use in this function)
db.c:163: error: âCR_CONNECTION_ERRORâ undeclared (first use in this function)
db.c:164: error: âCR_SERVER_LOSTâ undeclared (first use in this function)
db.c:165: error: âER_SERVER_SHUTDOWNâ undeclared (first use in this function)
db.c:166: error: âER_UNKNOWN_ERRORâ undeclared (first use in this function)
db.c: At top level:
db.c:344: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
db.c: In function âzbx_db_vexecuteâ:
db.c:540: error: âconnâ undeclared (first use in this function)
db.c:551: error: âCR_CONN_HOST_ERRORâ undeclared (first use in this function)
db.c:552: error: âCR_SERVER_GONE_ERRORâ undeclared (first use in this function)
db.c:553: error: âCR_CONNECTION_ERRORâ undeclared (first use in this function)
db.c:554: error: âCR_SERVER_LOSTâ undeclared (first use in this function)
db.c:555: error: âER_SERVER_SHUTDOWNâ undeclared (first use in this function)
db.c:556: error: âER_UNKNOWN_ERRORâ undeclared (first use in this function)
db.c: At top level:
db.c:760: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âzbx_db_fetchâ
db.c:845: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
db.c: In function âzbx_db_insert_idâ:
db.c:1071: error: âconnâ undeclared (first use in this function)
db.c: At top level:
db.c:1125: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
make[3]: *** [db.o] Error 1
make[3]: Leaving directory `/home/zabbix/zabbix-1.8/src/libs/zbxdb'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/zabbix/zabbix-1.8/src/libs'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/zabbix/zabbix-1.8/src'
make: *** [install-recursive] Error 1
i run this command when i configure:
./configure --enable-server --with-mysql=/usr/bin/mysql --with-net-snmp --with-libcurl
i have set these variables:
export CFLAGS=-lssl
export LDFLAGS="-L/usr/local/lib -L/usr/lib/mysql";
export PATH=$PATH:/usr/lib/mysql:/usr/lib
I have installed these packages:
gcc-c++
libstdc++-devel
make
mysql-devel
curl-devel
openssl-devel
krb5-devel
libgssapi-devel
e2fsprogs-libs
libidn-devel
zlib-devel
net-snmp-devel
glibc-devel
Anybody know what i'm doing wrong or missing?
Thanks in advance
Lars
Denmark