日期:2014-05-16  浏览次数:20766 次

Linux安装中找不到共享库的解决办法
例: 启动searchd程序时,提示找不到libmysqlclient共享库
/usr/local/GGS/bin/searchd: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory

解决办法之一是:
apt-get(debian)或者yum(centos)安装相应的包

之二是:
如果您已经tab包安装了该共享库,只是路径不在默认路径,可做软连接,如:

64位: ln -s /usr/local/mysql/lib/libmysqlclient.so.18 /usr/lib64/libmysqlclient.so.18
32位: ln -s /usr/local/mysql/lib/libmysqlclient.so.18 /usr/lib/libmysqlclient.so.18