configure nagios with mysql
Andreas Ericsson
ae at op5.se
Sat May 15 16:22:40 CEST 2004
Markus Hackethal wrote:
> Hello list,
> i am just new to the list and got some trouble
> to install nagios 1.2 + mysql on redhat 9.0
> with mysql-3.23.58-1.9 ( devel also installed )
You need mysql-shared as well (at least for MySQL 4.x).
RH has a funny way of packaging stuff...
> I browsed through the ML but couldnt find
> anything that would help me.
>
> I configured nagios with these options:
>
> ./configure --prefix=/var/www/nagios/ --with-nagios-user=nagios --with-nagios-grp=nagios --with-mysql-xdata \
> --with-mysql-status --with-mysql-comments --with-mysql-extinfo --with-mysql-retention --with-mysql-downtime \
> --with-mysql-lib=/usr/lib/mysql/ --with-mysql-inc=/usr/include/mysql/
>
> my ld.so.conf:
>
> /usr/lib/mysql
> /usr/include/mysql
>
> The problem is that the configure scripts always says lmysqlclient not installed.
>
> <snap>
> checking for main in -lmysqlclient... (cached) no
>
>
> *** MySQL library could not be located... **************************
>
> You chose to compile Nagios with MySQL support, but I was unable to
> locate the MySQL library on your system. If the library is
> installed, use the --with-mysql-lib and --with-mysql-inc arguments
> to specify the locations of the MySQL library and include files.
> </snap>
>
> Well i read in ML that the script requires mysql.h
> [root at server3 SOURCES]# find /usr/include/mysql/ -name mysql.h
> /usr/include/mysql/mysql.h
>
> my /usr/lib/mysql directory includes these files:
> [root at server3 mysql]# pwd
> /usr/lib/mysql
> [root at server3 mysql]# ls
> libdbug.a libmysqlclient_r.a libmysqlclient.so.10.0.0
> libheap.a libmysqlclient_r.so libmystrings.a
> libmerge.a libmysqlclient_r.so.10 libmysys.a
> libmyisam.a libmysqlclient_r.so.10.0.0 libnisam.a
> libmyisammrg.a libmysqlclient.so
> libmysqlclient.a libmysqlclient.so.10
>
> therfor i think that all requirements are available.
>
> Maybe anyone can help me solving this problem.
> Or is there something that is missing?
>
> Friendly regards,
>
> Markus Hackethal
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: SourceForge.net Broadband
> Sign-up now for SourceForge Broadband and get the fastest
> 6.0/768 connection for only $19.95/mo for the first 3 months!
> http://ads.osdn.com/?ad_id%62&alloc_ida84&op=click
> _______________________________________________
> 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
>
--
Sourcerer / Andreas Ericsson
OP5 AB
+46 (0)733 709032
andreas.ericsson at op5.se
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
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