RE: [Nagios-devel] problem compiling nagios-1.0a6

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

RE: [Nagios-devel] problem compiling nagios-1.0a6

Post by Guest »

Thanks,

I created a softlink of /usr/local/sys/uio.h in /usr/local/include and
changed the lib to /usr/lib/mysql. That got it past the compilation.

David

-----Original Message-----
From: Ewan Leith [mailto:ejl@man.fwltech.com]
Sent: Tuesday, March 05, 2002 12:22 PM
To: 'David Edward Shapiro'
Subject: RE: [Nagios-devel] problem compiling nagios-1.0a6


Shouldn't the ./configure use --with-mysql-lib=/usr/lib/mysql rather than
/var/lib/mysql/mysql?

Where it says change it to and see what happens when you
run make again.

Ewan

> -----Original Message-----
> From: David Edward Shapiro [mailto:David.Edward.Shapiro@btitele.com]
> Sent: 05 March 2002 16:53
> To: 'nagios-devel@lists.sourceforge.net'
> Subject: [Nagios-devel] problem compiling nagios-1.0a6
>
>
> Hello,
>
> I used cvs to download the lastest nagios. I ran configure with the
> following options:
>
>
> ./configure --with-mysql-xdata --with-template-objects
> --with-mysql-lib=/var/lib/mysql/mysql --with-mysql-inc=/usr/includ
> e/mysql --enable-webhelp --enable-embedded-perl --with-perlcache
> --with-ping-command=/usr/local/sbin/fping
>
> None of the binaries are getting made. (I downloaded and installed
> binutils-2.11-2)
> During the make I see ld collect2 errors for nagios and
> things like cgi.
>
> I see in config.status the following errors:
>
> onfigure:1245: gcc -E conftest.c >/dev/null 2>conftest.out
> configure:1241:17: uio.h: No such file or directory
> configure: failed program was:
> #line 1240 "configure"
> #include "confdefs.h"
> #include > > I did a locate on uio.h and found:> >/usr/include/linux/uio.h> /usr/include/bits/uio.h> /usr/include/sys/uio.h>/usr/i386-glibc21-linux/include/bits/uio.h>/usr/i386-glibc21-linux/include/linux/uio.h>/usr/i386-glibc21-linux/include/sys/uio.h> > Do I need to set an environmentvaribable to find uio.h? > Which uio.h should> it use?> > configure:2437:checking for main in -lmysqlclient> configure:2452: gcc -o conftest -g -O2-I/usr/include/mysql> -L/var/lib/mysql/mysql conftest.c -lmysqlclient1>&5> /usr/bin/ld: cannot find -lmysqlclient> collect2: ld returned 1 exitstatus> configure: failed program was:> #line 2445 "configure"> #include"confdefs.h"> > mysql is on the system. How do I help it find mysqlclient?I see in> /usr/lib/mysql:> > libdbug.a> libheap.a> libmerge.a> libmyisam.a>libmyisammrg.a> libmysqlclient.a> libmysqlclient.so ->libmysqlclient.so.10.0.0> libmysqlclient.so.10 -> libmysqlclient.so.10.0.0>libmysqlclient.so.10.0.0> libmystrings.a> libmysys.a> libnisam.a> > ldconfig does show:
>
> /usr/lib/mysql:
> libmysqlclient.so.10 -> libmysqlclient.so.10.0.0
>
>
> How can I get around these errors?
>
>
> David
>
> David E. Shapiro
> Senior Unix Admin
> BTi - the future of communications
>
>
>
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/lis ... gios-devel
>






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: wan Leith [mailto:ejl@man.fwltech.com
Locked