Compiling w/ DB support

Jamie Bohr jbohr at cos.agilent.com
Wed Nov 19 23:17:20 CET 2003


I get an error what I try to compile Nagios to use a MySQL data base,
any ideas as to why?  The configure command I ran is "./configure
--with-mysql-xdata  --with-mysql-status --with-mysql-retention
--with-mysql-extinfo" then I do a make all and I get the following
error:

# make all
cd ./base && make
make[1]: Entering directory `/tmp/nagios/base'
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o checks.o checks.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o config.o config.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o commands.o commands.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o flapping.o flapping.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o logging.o logging.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o notifications.o
notifications.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o sehandlers.o sehandlers.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o utils.o utils.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o sretention.o sretention.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o perfdata.o perfdata.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE  nagios.c checks.o config.o
commands.o flapping.o logging.o notifications.o sehandlers.o utils.o
sretention.o ../xdata/xrddb.c ../common/comments.c ../xdata/xcddb.c
../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c
../xdata/xsddb.c perfdata.o ../xdata/xpddefault.c ../common/downtime.c
../xdata/xdddb.c    -lm -o nagios
../xdata/xrddb.c:41:25: mysql/mysql.h: No such file or directory

This is just the start of a very long list or error messages.  Any clues
as to why?  A pointer to documentation would be great.

Thank you.



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list