<div>On average doing an ' ldconfig ' with no options after changing ld.so.conf is a good idea too. That usually clears up any missing libraries issues I have provided I added the right path to ld.so.conf to fix it.</div>
<div> </div>
<div>Cheers,</div>
<div>Hans<br><br> </div>
<div><span class="gmail_quote">On 2/3/06, <b class="gmail_sendername">Jamie Learmonth</b> <<a href="mailto:jamielists@googlemail.com">jamielists@googlemail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">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 onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Robert.H.Lowe@lawrence.edu" target="_blank">Robert.H.Lowe@lawrence.edu
</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div><span class="e" id="q_1093128570f2c9c2_1"><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></span></div>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></blockquote></div><br>