PDA

View Full Version : Can anyone help?


grabber
13-09-2005, 13:42
running on twin dual-core opteron 265's with 2Gb ram RHEL4 no updates from install. when running configure I get the following:

[xxxx@xxxx zabbix-1.1alpha10]# make
Making all in src/zabbix_agent
make[1]: Entering directory `/home/zabbix/zabbix-1.1alpha10/src/zabbix_agent'
gcc -o ../../bin/zabbix_agent -g -O2 -I../../include zabbix_agent.c sysinfo.c ../../include/log.c ../../include/cfg.c ../../include/security.c ../../include/snprintf.c ../../include/md5.c -Wall -lnsl
../../include/snprintf.c:169: warning: 'dopr' defined but not used
gcc -o ../../bin/zabbix_agentd -g -O2 -I../../include zabbix_agentd.c logfiles.c sysinfo.c stats.c interfaces.c diskdevices.c cpustat.c active.c ../../include/log.c ../../include/cfg.c ../../include/security.c ../../include/pid.c ../../include/snprintf.c ../../include/md5.c -Wall -lnsl
../../include/snprintf.c:169: warning: 'dopr' defined but not used
make[1]: Leaving directory `/home/zabbix/zabbix-1.1alpha10/src/zabbix_agent'
Making all in src/zabbix_sender
make[1]: Entering directory `/home/zabbix/zabbix-1.1alpha10/src/zabbix_sender'
gcc -o ../../bin/zabbix_sender -g -O2 -I../../include ../../include/snprintf.c zabbix_sender.c -lnsl
make[1]: Leaving directory `/home/zabbix/zabbix-1.1alpha10/src/zabbix_sender'
Making all in src/zabbix_server
make[1]: Entering directory `/home/zabbix/zabbix-1.1alpha10/src/zabbix_server'
gcc -o ../../bin/zabbix_server -g -O2 -I../../include -I/usr/local/mysql/include/mysql -I/usr/include server.c ../../include/db.c ../../include/functions.c ../../include/expression.c ../../include/cfg.c ../../include/log.c ../../include/security.c ../../include/pid.c ../../include/email.c ../../include/snprintf.c ../zabbix_agent/sysinfo.c ../../include/md5.c ../../include/zlog.c alerter.c pinger.c housekeeper.c checks_simple.c checks_snmp.c checks_agent.c checks_internal.c trapper.c -Wall -lnsl -L/usr/local/mysql/lib/mysql -lmysqlclient -lm -lz -L/usr/lib -lnetsnmp -lcrypto
../../include/snprintf.c:169: warning: 'dopr' defined but not used
/usr/bin/ld: skipping incompatible /usr/lib/libnsl.so when searching for -lnsl
/usr/bin/ld: skipping incompatible /usr/lib/libnsl.a when searching for -lnsl
/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libnetsnmp.a when searching for -lnetsnmp
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
make[1]: Leaving directory `/home/zabbix/zabbix-1.1alpha10/src/zabbix_server'

grabber
13-09-2005, 13:44
That is followed by this error when I try to run the server:


zabbix_server: error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file: No such file or directory

elkor
13-09-2005, 14:32
I'm pretty sure you need the mysql-devel package to get that lib.

[root@sentinel]/zabbix/bin# rpm -qi mysql-devel
Name : mysql-devel Relocations: (not relocatable)
Version : 4.1.10a Vendor: Red Hat, Inc.
Release : 2.RHEL4.1 Build Date: Thu 12 May 2005 09:11:28 PM EDT
Install Date: Mon 15 Aug 2005 11:20:28 AM EDT Build Host: tweety.build.redhat.com
Group : Applications/Databases Source RPM: mysql-4.1.10a-2.RHEL4.1.src.rpm
Size : 4464795 License: GPL
Signature : DSA/SHA1, Mon 16 May 2005 12:28:52 PM EDT, Key ID 219180cddb42a60e
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL : http://www.mysql.com
Summary : Files for development of MySQL applications.
Description :
MySQL is a true multi-user, multi-threaded SQL database server. This
package contains the libraries and header files that are needed for
developing MySQL applications.