nagios compilation problems

Marc Powell mpowell at ena.com
Wed Sep 24 19:19:54 CEST 2003


As a general rule, if you're compiling a program that depends on another
program, you're probably going to need the lib and include files for the
other program. In this case the -devel rpms.

 

 

--

marc

  _____  

From: Brian Snead [mailto:BSnead at infosysnetworks.com] 
Sent: Wednesday, September 24, 2003 12:08 PM
To: Philipp.Straka at avl.com; nagios-users at lists.sourceforge.net

 

I had the same problems you are describing. I tried several different
ways of installing mysql, libraries and clients. Finally, the only way I
could get Nagios 1.1 to compile with mysql support was to remove mysql
and install the version that came with Redhat 9.0. Then I let Redhat
up2date upgrade the version to 3.23.56-9. This still would not work, so
I downloaded the mysql-devel-3.23.56-9 from rpmfind.net. 

 

Then, go into the nagios-1.1 source directory and 'make clean'

then ./configure --with-mysql-xdata --with-mysql-lib=/usr/lib/mysql
--with-mysql-inc=/usr/include/mysql

then make all

 

Hope this helps.

 

Brian.

	-----Original Message-----
	From: Philipp.Straka at avl.com [mailto:Philipp.Straka at avl.com]
	Sent: Wednesday, September 24, 2003 1:47 AM
	To: nagios-users at lists.sourceforge.net
	Subject: [Nagios-users] nagios compilation problems

	I need help. 

	 

	-- When I try to compile, the compiler tells me, that the files
./xdata/x?ddb.c at line xx produce the error "no such file". 

	-- In the specified line of the c files, there is an include
statement requesting the files "mysql.h" and "errmsg.h". 

	-- I altered the include statement there from "mysql/mysql.h" to
"mysql.h" and supplied the configure script with
"-with-mysql-inc=/usr/local/include" (left the dir mysql away) 

	-- The new error is coming from "mysql.h". This file has an
include statement in line 107 requesting for the file "my_alloc.h" 

	-- The file "my_alloc.h" I found in the include directory of the
src distribution of mysql. 

	-- When I tried to compile after having copied this file to the
location specified in "mysql.h:107", there was another error. It is an
"undefined reference to mysql_init()", most probably because the
"my_alloc.c" file is not there with the corresponding header file. But I
could not find the .c file anywhere! 

	 

	What can I do to get Nagios up'n'running?

	 

	I would be glad for help! :o)

	Phil Straka

	 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030924/f5b8a9f4/attachment.html>


More information about the Users mailing list