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.<br><br><div><span class="gmail_quote">On 2/3/06, <b class="gmail_sendername">Robert Lowe</b> <<a href="mailto:Robert.H.Lowe@lawrence.edu">Robert.H.Lowe@lawrence.edu
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br>Jamie Learmonth wrote:<br>> Hi,<br>><br>> I am using
nagios-plugins-1.4.2 , and MySQL-client-5.0.9-0,<br>> MySQL-devel-5.0.9-0 and MySQL-shared-5.0.9-0 . My client libraries are<br>> in /usr/local/lib/mysql rather than /usr/lib/mysql . The check_mysql<br>> plugin doesnt compile unless I use the configure option
<br>> --with-mysql=/usr/local . However, once check_mysql is compiled,<br>> whenever running it it complains that it cant find the client libraries :<br>><br>> ./check_mysql: error while loading shared libraries:
<br>> libmysqlclient.so.15: cannot open shared object file: No such file or<br>> directory<br>><br>> Is this a bug, or am I missing something?<br><br>My suggestion...<br><br>Make a link in /usr/lib/mysql pointing to the library in
<br>/usr/local/lib/mysql, or configure using additional LDFLAGS<br>(environment variable), e.g. -L/usr/local/lib/mysql, and<br>re-compile.<br><br>-Robert<br></blockquote></div><br>