首页 > 其他分享 >/shuntdown error while loading shared libraries: libaudit.so.1:cannot open shared object file: No su

/shuntdown error while loading shared libraries: libaudit.so.1:cannot open shared object file: No su

时间:2022-12-28 11:45:12浏览次数:54  
标签:ld loading so file such shared 目录

 

出现这类错误表示,系统不知道xxx.so放在哪个目录下,这时候就要在/etc/ld.so.conf中加入xxx.so所在的目录。

  一般而言,有很多的so会存放在/usr/local/lib这个目录底下,去这个目录底下找,果然发现自己所需要的.so文件。

  所以,在/etc/ld.so.conf中加入/usr/local/lib这一行,保存之后,再运行:/sbin/ldconfig –v更新一下配置即可。

  上面就是Linux执行程序时提示error while loading shared libraries的解决方法,如果你遇到了一样的问题,可在/etc/ld.so.conf中加入xxx.so所在的目录,再更新下配置。

标签:ld,loading,so,file,such,shared,目录
From: https://www.cnblogs.com/leinuo2016/p/16688031.html

相关文章