[EMAIL PROTECTED] wrote: > Hi Again list. > > Im my continuing saga to try and get NDO Utils working I have come up > against another error. > > # /usr/local/nagios/bin/ndo2db -c > /usr/local/nagios/etc/ndo2db.cfg > > /usr/local/nagios/bin/ndo2db: error while loading shared > libraries: libmysqlclient.so.15: cannot open shared object file: No such > file or directory > > If I check the output off ./configure I can see that it found the > mysqlclient libs > > checking for mysql_store_result in -lmysqlclient... yes > checking mysql/mysql.h usability... yes > checking mysql/mysql.h presence... yes > checking for mysql/mysql.h... yes > MySQL library and include file(s) were found! > > Can anyone point me in the right direction please. >
ldd /usr/local/nagios/bin/ndo2db will tell you where it tries to find the libmysqlclient.so.15 library. Creating a symlink there to where you actually keep the library should suffice. Did you have mysql installed in some nonstandard location when you compiled the program? If so, the location was hardlinked into the binary and you need to either re-compile (and tell it the new location) or move the library back to its original position. If the new location is shorter (strlen(path_to_new_loc) < strlen(path_to_old_loc)), you can use a hex-editor to modify the binary to point to the new location. Don't do this if it's the other way around though. Good luck -- Andreas Ericsson [EMAIL PROTECTED] OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list [email protected] 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
