[Nagiosplug-help] check_mysql - Cant locate client libraries

Jamie Learmonth jamielists at googlemail.com
Fri Feb 3 10:24:11 CET 2006


Added /usr/local and /usr/local/lib/mysql to ld.so.conf , symlinked
libmysqlclient.so.15 in /usr/lib/mysql , did an export
LDPATH=/usr/local/lib/mysql;./configure && make all ... check_mysql didnt
compile. did export LDPATH=/usr/local/lib/mysql;./configure
--with-mysql=/usr/local && make all ... check_mysql compiles but same error.

On 2/3/06, Robert Lowe <Robert.H.Lowe at lawrence.edu> wrote:
>
>
>
> Jamie Learmonth wrote:
> > Hi,
> >
> > I am using nagios-plugins-1.4.2 , and MySQL-client-5.0.9-0,
> > MySQL-devel-5.0.9-0 and MySQL-shared-5.0.9-0 . My client libraries are
> > in /usr/local/lib/mysql rather than /usr/lib/mysql . The check_mysql
> > plugin doesnt compile unless I use the configure option
> > --with-mysql=/usr/local . However, once check_mysql is compiled,
> > whenever running it it complains that it cant find the client libraries
> :
> >
> > ./check_mysql: error while loading shared libraries:
> > libmysqlclient.so.15: cannot open shared object file: No such file or
> > directory
> >
> > Is this a bug, or am I missing something?
>
> My suggestion...
>
> Make a link in /usr/lib/mysql pointing to the library in
> /usr/local/lib/mysql, or configure using additional LDFLAGS
> (environment variable), e.g. -L/usr/local/lib/mysql, and
> re-compile.
>
> -Robert
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20060203/22e18041/attachment.html>


More information about the Help mailing list