`

error while loading shared libraries

阅读更多
启动服务时出现 error while loading shared libraries: aa.so.xx: cannot open shared object file: No such file or directory

意思是启动的服务找不到相应的包

可以用以下的命令查找这个包具体路径
>whereis aa.so.xx
aa.so.xx: /usr/share/lib/aa.so.xx

查看启动此服务关联了哪些包,如以下是我的memcached需要的包
> ldd /usr/local/bin/memcached
        linux-gate.so.1 =>  (0xb7fa4000)
        libevent-1.4.so.2 => not found
        libpthread.so.0 => /lib/libpthread.so.0 (0x0086e000)
        libc.so.6 => /lib/libc.so.6 (0x006f7000)
        /lib/ld-linux.so.2 (0x006d9000)

查看memcached默认的包路径
> LD_DEBUG=libs ./memcached -v
找到默认路径 /usr/lib64/
我们可以查找一下/usr/lib64/下确实没有libevent-1.4.so.2
把libevent-1.4.so.2关联到/usr/lib64/下
>ln -s /usr/share/lib/libevent-1.4.so.2 /usr/lib64/libevent-1.4.so.2

再次查看memcached所关联的包,我们发现libevent-1.4.so.2已经找到
>ldd /usr/local/bin/memcached
        linux-gate.so.1 =>  (0xb7ffd000)
        libevent-1.4.so.2 => /usr/lib64/libevent-1.4.so.2 (0xb7fdc000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x0086e000)
        libc.so.6 => /lib/libc.so.6 (0x006f7000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x009f8000)
        librt.so.1 => /lib/librt.so.1 (0x00887000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x00b29000)
        /lib/ld-linux.so.2 (0x006d9000)
分享到:
评论

相关推荐

    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.*文件)或者共享库...

    linux运行zipalign报错“error while loading shared libraries: libc++

    linux运行zipalign报错“error while loading shared libraries: libc++.so“ 相关文章链接https://blog.csdn.net/u010775335/article/details/124869330

    解决启动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`的关键...

    MYSQL之 error while loading shared libraries: libtinfo.so.5: cannot open shared objectfile: No such f-附件资源

    MYSQL之 error while loading shared libraries: libtinfo.so.5: cannot open shared objectfile: No such f-附件资源

    安装ImageMagick出现error while loading shared libraries的解决方法

    本文实例讲述了安装安装ImageMagick出现error while loading shared libraries的解决方法。分享给大家供大家参考。具体解决方法如下: 运行程序时,如遇到像下列这种错误: ./tests: error while loading shared ...

    libnvinfer.so.7

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

    mysql linux安装出错 libaio-dev

    mysql linux下安装时,存在以下错误: Installing MySQL system tables..../bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory

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

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

    libzstd1_1.4.4+dfsg-1_amd64.deb

    error while loading shared libraries: libstdc++.so.6

    errorloadingos解决方法[文].pdf

    "Error Loading OS" 是一种常见的计算机启动错误,通常在尝试加载操作系统时出现。该问题可能由多种原因引起,包括但不限于BIOS设置问题、硬盘错误、主引导记录损坏或未激活的主分区。针对这个错误,我们可以尝试...

    libonig.so.2.0.0

    libonig.so.2 的依赖文件 bin/php: error while loading shared libraries: libonig.so.2: cannot open shared object file: No such libonig.so.2.0.0 放到/usr/lib64 下  ln -s libonig.so.2.0.0 libonig.so....

    文件libssl.so.1.0.0、文件libcrypto.so.1.0.0

    bedGraphToBigWig: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory 就将使用root用户,将这两个文件放到/usr/lib64/ 或则使用: ln -s /usr/...

    mongodb-linux-x86-64-ubuntu2004-4.4.23.tgz

    mongodb-linux-x86_64-ubuntu2004-4.4.23.tgz适用于ubuntu24 64位系统,启动mongodb的时候若提示./mongod: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file,可将系统中的...

    libclntsh.so.11.1

    你是否还在为报错sqlplus: error while loading shared libraries: libclntsh.so.11.1: cannot open shared object file: No such file or directory而犯愁,不用犯愁了,赶紧下载吧!

    libpng12-0_1.2.54-1ubuntu1.1_amd64.deb

    该文件可以用于解决启动verdi后的报错,verdi/platform/LINUXAMD64/bin/ Novas: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory 注意适用于64...

    centos6.3下安装oracle11g

    在CentOS 6.3操作系统环境下安装Oracle 11g是一项技术性较强的任务,涉及到操作系统配置、用户权限管理、磁盘空间规划等多个方面。Oracle 11g是一款企业级的关系型数据库管理系统,广泛应用于大型企业的数据存储和...

    arm-linux-gnueabi-5.4.0.tar

    error while loading shared libraries: libmpfr.so.4: cannot open shared object file: No such file or directory 解决方法: $sudo ln -s /usr/lib/x86_64-linux-gnu/libmpfr.so.6 /usr/lib/x86_64-linux-gnu/...

Global site tag (gtag.js) - Google Analytics