`
ypf3027
  • 浏览: 306235 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

缺少动态连接库.so--cannot open shared object file: No such file or directory

 
阅读更多
总结下来主要有3种方法:
1. 用ln将需要的so文件链接到/usr/lib或者/lib这两个默认的目录下边
ln -/where/you/install/lib/*.so /usr/lib
sudo ldconfig

 

2.修改LD_LIBRARY_PATH

export LD_LIBRARY_PATH=/where/you/install/lib:$LD_LIBRARY_PATH
sudo ldconfig

 

3.修改/etc/ld.so.conf,然后刷新


vim /etc/ld.so.conf

add /where/you/install/lib

sudo ldconfig

Refer: http://www.cnblogs.com/smartvessel/archive/2011/01/21/1940868.html

 

分享到:
评论

相关推荐

    libcusparse.so.11

    OSError: libcusparse.so.11: cannot open shared object file: No such file or directory 搜索全网,也没找到解决方案。最快解决方案如下: 1、在 /home/user/anaconda3/lib/ 中放入缺少的 libcusparse.so.11 文件...

    linux 下libXp.so.6不能shared

    libXp.so.6: cannot open shared object file: No such file or directory [oracle@dbadb1 ~]$ ls -ld /usr/lib/libXp.so.6 ls: /usr/lib/libXp.so.6: No such file or directory [root@dbadb1 zhuxu]# rpm -ivh...

    libfreetype.so.6.12.1

    error while loading shared libraries: libfreetype.so.6: cannot open shared object file: No such file or directory 缺少的文件libfreetype.so.6

    libzip.so.5

    linux系统依赖 php依赖 libzip依赖 libzip.so.5: cannot open shared object file

    ubuntu报错:libg2c.so.0:cannot open shared object file: no such file or directory/wrong ELF class(已解决)-附件资源

    ubuntu报错:libg2c.so.0:cannot open shared object file: no such file or directory/wrong ELF class(已解决)-附件资源

    OSError: no library called "cairo" was found GTK++ windows 安装包

    cannot load library 'libcairo.so.2': libcairo.so.2: cannot open shared object file: No such file or directory cannot load library 'libcairo.2.dylib': libcairo.2.dylib: cannot open shared object file: ...

    libnvinfer.so.7

    deepstream-app: error while loading shared libraries: libnvinfer.so.7: cannot open shared object file: No such file or directory

    libsasl2.so.3.0.0 x64

    libsasl2.so.3: cannot open shared object file: No such file or directory 文件缺失或文件版本过低导致执行脚本出错,将此文件放在/usr/lib64下进行软链接即可解决

    libssl.so.10缺失库文件的解决办法.doc

    libssl.so.10: cannot open shared object file: No such file or directory”这样的错误提示,这意味着系统缺少名为libssl.so.10的动态链接库文件。这个问题通常是由于系统升级或软件依赖更新导致的。以下是一份...

    libnccl.so

    tensorflow.python.framework.errors_impl.NotFoundError: libnccl.so.2: cannot open shared object file: No such file or directory。 根据报错的内容,我们知道,缺少一个文件,libnccl*** 类似的东西,看到nccl...

    libcrypto.so.10

    centos7.0安装yum客户端是提示libcrypto.so.1.0.0: cannot open shared object file: No such file or directory,将库文件放到/var/lib64/下面

    libxml2-2.9.1-6.el7.5.x86_64.rpm

    yum install 提示ImportError: libxml2.so.2: cannot open shared object file: No such file or directory,需要安装libxml2.so.2

    xulrunner-1.9.2.28pre.en-US.linux-x86_64.tar.rar

    /root/.swt/lib/linux/x86_64/libswt-mozilla-gtk-4335.so: libxpcom.so: cannot open shared object file: No such file or directory Can't load library: /root/.swt/lib/linux/x86_64/libswt-mozilla-gtk.so ...

    Linux程序运行时加载动态库失败的解决方法

    ./test: error while loading shared libraries: libmfs_open.so: cannot open shared object file: No such file or directory 若动态库的路径在(/usr/cluster/.share/lib) 解决办法: 方法一、在/etc/ld.so.conf...

    libcublas.so.10.0

    cuda安装版本出现问题的时候,可能会出现importerror: libcublas.so.10.0: cannot open shared object file: No such file or directory的错误,根本原因三cuda下找不到这个文件,把这个文件放到/usr/local/cuda/lib...

    mysql-libs-5.1.73-3.el6_5.x86_64.rpm

    bin/postconf: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directoryPlease specify the final destination directory for installed Postfix ...

    libz.so.1+libz.so.1.2.11 centos rocky原始文件2024

    sudo: unable to load /usr/libexec/sudo/sudoers.so: libz.so.1: cannot open shared object file: No such file or directory sudo: fatal error, unable to load plugins 等解决方法具体查看...

    解决启动MongoDB错误:error while loading shared libraries: libstdc++.so.6:cannot open shared object file:

    在使用MongoDB数据库服务时,有时可能会遇到启动过程中的错误,如"error while loading shared libraries: libstdc++.so.6: cannot open shared object file"。这个错误表明系统缺少一个名为`libstdc++.so.6`的关键...

Global site tag (gtag.js) - Google Analytics