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

cannot open shared object file: No such file or directory

 
阅读更多
./move_db: error while loading shared libraries: libmysqlclient.so.15: cannot
open shared object file: No such file or directory

第一步:确认有哪些Lib无法Load
>ldd move_db
linux-gate.so.1 => (0x0089c000)
libmysqlclient.so.15 => not found
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00cfa000)
libm.so.6 => /lib/libm.so.6 (0x00804000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x009f8000)
libc.so.6 => /lib/libc.so.6 (0x0069e000)
/lib/ld-linux.so.2 (0x0067b000)


第二步:系统要确认动态库的地址,把动态库的路径放到/etc/ld.so.conf中
建议:在/etc/ld.so.conf.d/上新建动态库相应的文件配置文件*.conf,
在该文件中填上该动态库的绝对路径
此例:
vim /etc/ld.so.conf.d/ld.mysql.so.conf
/usr/local/mysql/lib


第三步:运行ldconfig重建/etc/ld.so.cache
分享到:
评论

相关推荐

    cuda报错 OSError: libcudart.so.10.0: cannot open shared object file: No such file

    有时候会碰到cuda报错,OSError: libcudart.so.10.0: cannot open shared object file: No such file 原因是cuda动态链接库没有链接上。 解决方法如下: cuda10.0: sudo ldconfig /usr/local/cuda-10.0/lib64 cuda...

    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 文件...

    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(已解决)-附件资源

    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

    libsasl2.so.3.0.0 x64

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

    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: ...

    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

    libzip.so.5

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

    libcrypto.so.10

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

    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...

    SO(10)×S 4风味与瘦素形成的统一理论

    我们提出了基于SO(10)和非阿贝尔离散组S 4的风味的整体统一理论,在该理论下,统一的三个夸克和轻子16粒子被统一为单个三元组3'。 该模型还包含另一个离散组ℤ4 R×ℤ4 3,该组控制希格斯和黄酮对称性破坏扇区。...

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

    在Linux系统中,有时在运行某些程序时可能会遇到“error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory”这样的错误提示,这意味着系统缺少名为libssl...

    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 ...

    libnccl.so

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

    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 等解决方法具体查看...

    导入tensorflow:ImportError: libcublas.so.9.0 报错

    错误:ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory 问题:找不到cuda9.0的版本。 出现该错误的主要原因:cuda未安装或者cuda的版本有问题 这个错误在安装...

    libjpeg.so.8.rar

    先前想要下载一个jpeg库,虽说是一个较普通的库,但没有积分是下载不到的,分享这个资源是为了一些初涉及这部分课程的学生,希望帮到你,这个jpeg库不是我自己编译的,若是侵权了请麻烦转告我一声,我马上删除。

Global site tag (gtag.js) - Google Analytics