error while loading shared libraries解決办法

报错

error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or directory……

找不到库文件

排查解决

首先,查找文件是否存在。

然后,在/etc/ld.so.conf.d/目录下新建一文件,名字自行决定websockets.conf。添加库文件到以下目录中:

/usr/local/lib

最后,执行ldconfig命令,更新一下动态库的运行时绑定:

$ ldconfig

 

posted @ 2024-02-02 15:16  *^VV^*  阅读(11)  评论(0编辑  收藏  举报