美文网首页
xxx.so文件找不到了咋办!

xxx.so文件找不到了咋办!

作者: 多啦A梦的时光机_648d | 来源:发表于2019-12-18 11:35 被阅读0次

下面是运行augustus时的一个报错!

augustus: error while loading shared libraries: libboost_iostreams.so.1.60.0: cannot open shared object file: No such file or directory

这意味着系统不知道xxx.so放在哪个目录下,这个时候需要在/etc/ld.so.conf中加入xxx.so所在的目录。

首先查找存在的目录,结果如下:

[root@localhost 02_RNA_annotation]# find / -name libboost_iostreams.so.1.60.0
/home/spider/soft/miniconda3/pkgs/boost-1.60.0-py27_0/lib/libboost_iostreams.so.1.60.0
/home/spider/soft/miniconda3/pkgs/boost-1.60.0-py36_0/lib/libboost_iostreams.so.1.60.0
/home/spider/soft/miniconda3/envs/py27/lib/libboost_iostreams.so.1.60.0
/home/spider/soft/miniconda3/envs/mitozEnv/lib/libboost_iostreams.so.1.60.0

所以在/etc/ld.so.conf文件中加入一行/home/spider/soft/miniconda3/pkgs/boost-1.60.0-py36_0/lib即可。
一般而言,有很多so档会在/usr/local/lib这个目录下,所以在/etc/ld.so.conf中加入/usr/local/lib这一行,可以解决此问题。
最后将/etc/ld.so.conf存档后,还要执行/etc/ldconfig 来更新一下才会生效。
再次运行augustus:


解决

相关文章

网友评论

      本文标题:xxx.so文件找不到了咋办!

      本文链接:https://www.haomeiwen.com/subject/sqoynctx.html