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
/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