`

解决Linux:cannot open shared object file: No such file or directory 类似问题

 
阅读更多

遇到 error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or directory 这样的问题是在安装memcached的时候遇到的。

我按别人的攻略安装了libevent和memcached之后却发现在执行的时候出现了。 error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or directory 这个错误提示。

解决类似问题的步骤我相信我的做法可以通用。

1. 首先 find / -name libevent-1.4.so.2 找到缺少的链接文件到底在那儿。

2. LD_DEBUG=libs /usr/local/bin/memcached -v

3. 从Debug信息中就知道程序去哪里找链接库了。我这边程序去 trying file=/usr/lib/libevent-1.4.so.2 而我的链接库的实际存储位置是 /usr/local/lib/libevent-1.4.so.2

4. 做一个软连接 ln -s /usr/local/lib/libevent-1.4.so.2 /usr/lib/libevent-1.4.so.2

5. 搞定。

 

补充安装echoprint-codegen遇到同样的问题:

1. LD_DEBUG=libs /usr/local/bin/echoprint-codegen -v 找到丢失的链接库。

2. 做一个软连接 ln -s /usr/local/lib/libtag.so.1 /usr/lib64/libtag.so.1

 

分享到:
评论

相关推荐

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

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

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

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

    error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory [root@SnsWeb ~]# /usr/local/mongodb/bin/mongod --dbpath=/usr/local/mongodb/data --log...

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

    Nginx常见错误

    cannot open shared object file: No such file or directory 启动时如果报异常error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory 这说明我们的...

    libnccl.so

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

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

    libssl.so.10缺失库文件的解决办法,error while loading shared libraries :libssl.so.10:cannot open shared object file:No such file or directory

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

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

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

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

    libnvinfer.so.7

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

    suse linux安装bind出错

    suse linux安装bind出错,运行service named start命令,出现/usr/sbin/named-checkconf: error while loading shared libraries: libcrypto.so.10: cannot open shared object file: No such file or directory的...

    Linux Kernel Makefiles

    Linux Kernel Makefiles

    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

    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

    linux系统安装oracle数据库详解

    Exception in thread “main” java.lang.UnsatisfiedLinkError: /tmp/OraInstall2009-11-25_02-34-42PM/jre/1.4.2/lib/i386/libawt.so:libXp.so.6: cannot open shared object file: No such file or directory ...

    error while loading shared libraries xx.so处理方法

    tmux: error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or directory 原因一般有两个, 一个是操作系统里确实没有包含该共享库(lib*.so.*文件)或者共享库...

Global site tag (gtag.js) - Google Analytics