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 @   *^VV^*  阅读(245)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· 没有源码,如何修改代码逻辑?
· PowerShell开发游戏 · 打蜜蜂
· 在鹅厂做java开发是什么体验
· WPF到Web的无缝过渡:英雄联盟客户端的OpenSilver迁移实战
点击右上角即可分享
微信分享提示