Ndoutil confiture script failed to set mysql include path

Patrick Proy nagios at proy.org
Wed May 9 21:13:22 CEST 2007


Hi, 

>Please tell us with path1 and path2 are exactly.
>I know about some other tools that would have this path directive "before"
/some/what/mysql - they just wants /some/what instead of >/some/what/mysql 

I don't remember exactly the paths (and won't be there until 2 weeks), but
it was something like : 
--with-mysql-lib=/LMYSQL_V4120/lib/mysql
--with-mysql-inc=/LMYSQL_V4120/include

The configure script said it found the mysql.h,errmsg.h and the libs.

>What were the paths before your change?
Didn't change from the original config.h.in : 
#include <mysql/mysql.h>
#include <mysql/errmsg.h>

Patrick

-----Message d'origine-----
De : nagios-devel-bounces at lists.sourceforge.net
[mailto:nagios-devel-bounces at lists.sourceforge.net] De la part de Hendrik
Bäcker
Envoyé : mercredi 9 mai 2007 20:58
À : Nagios Developers List
Objet : Re: [Nagios-devel] Ndoutil confiture script failed to set mysql
include path

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Patrick,

Patrick Proy schrieb:
> Hi,
> 
> I had a problem when compiling Ndoutil 1.4b3 on a RHEL4 with MySQL in 
> a special directory :
> 
> I run the configure script : 
> 
> -------------------
> ./configure --prefix=<prefix> --with-mysql-lib=<path1> 
> --with-mysql-inc=<path2>
> -------------------

Please tell us with path1 and path2 are exactly.
I know about some other tools that would have this path directive "before"
/some/what/mysql - they just wants /some/what instead of /some/what/mysql

> MySQL detection by configure was OK (lib + include files).
> 
A little bit strange.
> 
> I had to change manually the include/config.h file, lines 250 & 251 to :
> 
>     246 #define USE_MYSQL 1
>     247 /* #undef HAVE_MYSQL */
>     248 #ifdef USE_MYSQL
>     249 #define HAVE_MYSQL 1
>     250 #include "<path2>/mysql/mysql.h"
>     251 #include "<path2>/mysql/errmsg.h"
>     252 #endif

What were the paths before your change?
> 
> 
> An init script for ndo2db included in the tgz would be great (found 
> one here
> :
> http://nagios-portal.de/forum/print.php?threadid=5261&page=1&sid=84662
> 1ddd01 ffbc5ee89bdf949e311d6, but I had to modify path & user)
> 

Yeah! Cool guys on this forum ;)

Regars,
Hendrik
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)

iD8DBQFGQhmklI0PwfxLQjkRAo/iAKCA2494DrwYW4B/wCG5K+tefAHv4QCdGk+R
8/0Snn58wKXNSoEBzk/a3sk=
=6eDj
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express Download DB2 Express C - the
FREE version of DB2 express and take control of your XML. No limits. Just
data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/




More information about the Developers mailing list