Saturday 30 August 2014

/usr/bin/ld: cannot find -lmysqlclient - Compiling from source

While compiling an application from source, the following error was encountered.

/usr/bin/ld: cannot find -lc
Process exited with status 1.

The problem was that the MySQL client library files didn't have soft links created for 'libmysqlclient' to the /usr/lib directory

The default installation created 'libmysqlclient.so.16'.

So inorder for the compilation to work, a soft link for this was created using

ln -s /usr/lib/libmysqlclient.so.16 /usr/lib/libmysqlclient.so

No comments:

Post a Comment