Linux安全网 - Linux操作系统_Linux 命令_Linux教程_Linux黑客

会员投稿 投稿指南 本期推荐:
搜索:
您的位置: Linux安全网 > Linux培训 > » 正文

Linux下出现error while loading shared libraries错误。

来源: guojian3021886 分享至:

装了datastage,在启动服务器shell的时候,出现

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

.so.x是动态运行库,后面的数字是版本号。


出现这类错误表示,系统不知道xxx.so放在哪个目录下,这时候就要在/etc/ld.so.conf中加入xxx.so所在的目录。
一般而言,有很多的so会存放在/usr/local/lib这个目录底下,

或者使用命令"find / -name xxx.so"来查找此文件。
所以,在/etc/ld.so.conf中加入此文件指定路径,如"/usr/local/lib"这一行,

保存之后,再运行:/sbin/ldconfig –v更新一下配置即可。


Tags:
分享至:
最新图文资讯
1 2 3 4 5 6
验证码:点击我更换图片 理智评论文明上网,拒绝恶意谩骂 用户名:
关于我们 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 发展历史