error while loading shared libraries的解決方法

作者:佚名 上传时间:2019-04-28 版权申诉

在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更新一下配置即可。





本文转自 驿落黄昏 51CTO博客,原文链接:http://blog.51cto.com/yiluohuanghun/866300 ,如需转载请自行联系原作者


免责申明:文章和图片全部来源于公开网络,如有侵权,请通知删除 server@dude6.com

用户评论
相关推荐
error while loading shared libraries方法
在linux下运行程序时,发现了error while loading shared libraries这种错误,一时间不知道解决办法,在网上搜索,终于解决了: ./te
error while loading shared libraries xx.so处理方法
一般我们在Linux下执行某些外部程序的时候可能会提示找不到共享库的错误, 比如: tmux: error while loading shared libraries: libevent-1.4.s
PDF
45KB
2021-01-16 03:32
安装ImageMagick出现error while loading shared libraries解决方法
主要介绍了安装ImageMagick出现error while loading shared libraries的解决方法,是ImageMagick安装与运行中经常出现的问题,需要的朋友可以参考下
PDF
30KB
2020-11-22 00:01
MYSQL之error while loading shared libraries libtinfo.so.5cannot open shared o
MYSQL之 error while loading shared libraries: libtinfo.so.5: cannot open shared objectfile: No such f
TXT
23B
2021-04-07 10:07
启动 nginx 时报错:error while loading shared libraries:
Nginx 启动出错 error while loading shared libraries: libpcre.so.1error while loading shared l
error while loading shared libraries: libtinfo.so.5
想通过ansible在管理的各数据库服务器执行操作数据库的一个shell脚本,跑脚本的时候发现部分服务器能执行成功,部分服务器失败了,报错信息为error while loading sha
error while loading shared libraries: libmysqlclient.so.15
error while loading shared libraries error while loading shared libraries: libmysq
error while loading shared libraries: libsqlplus.so 故障解决方法
报错信息: ./sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared
/bin/postconf:error while loading shared libraries:libmysqlclient.so.15
/bin/postconf:error while loading shared libraries:libmysqlclient.so.15:connot open shared obje
error while loading shared libraries: libssl.so.6: cannot open shared object fil
[root@ ~]# /usr/local/nagios/libexec/check_tcp -H 127.0.0.1 80 /usr/local/nagios/libexec/