"error while loading shared libraries: libmysqlclient.so.15:" Huh?
Posted by: Bill Phan
Date: April 23, 2013 10:40PM

I infrequently get the error "error while loading shared libraries: libmysqlclient.so.15:" when running a C program that queries a mySQL 5
DB, calls a stored procedure and does a LOAD DATA INFILE. The code is run as
a daily cron job on a CentOS 6.4 box and the error might not happen for days but once it occurs I have to re-compile the source code to get it working again.

The strange thing is, I thought executables on Linux were stand-alone and didn't
need to load any libraries on the fly in order to function.

Here's the gcc command line I'm using to compile the code:

gcc -o ImportData.out $(mysql_config --cflags) ImportData.c $(mysql_config --libs)

The program compiles w/no errors and by verifying the mySQL 5 tables are created correctly and all the data imported into the tables appears to work correctly.

Google didn't really turn up anything useful which is why I'm here now.

Options: ReplyQuote


Subject
Views
Written By
Posted
"error while loading shared libraries: libmysqlclient.so.15:" Huh?
3730
April 23, 2013 10:40PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.