/tests: error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or directory
那就表示系統不知道xxx.so 放在哪个目录下,
可以先查询下,.so放在哪个文件下:find -name xxx.so
等到它的路径后,将它路径放在/etc/ld.so.conf文件中,(这里要注意的是使用find命令得到的路径是相对当前路径的,要把全部的路径放在该文件中)
将/etc/ld.so.conf保存后,执行/sbin/ldconfig –v来更新下,即可