Trade Off

supercalifragilisticexpialidocious

Ldconfig: /usr/lib/libmysqlclient.so.16 Is Not a Symbolic Link的问题

刚刚用yum升级了系统,发现日志中有很多这样的提示:

1
2
ldconfig: /usr/lib/libmysqlclient.so.16 is not a symbolic link
ldconfig: /usr/lib/libmysqlclient_r.so.16 is not a symbolic link

于是Google了一下,找到一个解决方法,在这里.

就是重建了两条连接过去即可:

1
2
ln -sf /usr/local/mysql/lib/mysql/libmysqlclient.so.16 /usr/lib/mysqlclient.so.16
ln -sf /usr/local/mysql/lib/mysql/libmysqlclient_r.so.16 /usr/lib/libmysqlclient_r.so.16

Comments