Linux执行程序时提示error while loading shared如何办?


Linux在执行某些程序的时候,居然出现了error while loading shared libraries错误提示,相信很多朋友都有遇到这个问题,其实这个问题不难解决,随小编一起来了解下吧。

解决方法:

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

出现这类错误表示,系统不知道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所在的目录,再更新下配置。


上一篇:Ubuntu编译安装Hypertable的方法

下一篇:Ubuntu 12.04发热厉害如何办?


errorwhileloadingsharedlibraries Linux执行程序
Copyright © 2002-2019 测速网 www.inhv.cn 皖ICP备2023010105号
测速城市 测速地区 测速街道 网速测试城市 网速测试地区 网速测试街道
温馨提示:部分文章图片数据来源与网络,仅供参考!版权归原作者所有,如有侵权请联系删除!

热门搜索 城市网站建设 地区网站制作 街道网页设计 大写数字 热点城市 热点地区 热点街道 热点时间 房贷计算器