麒麟sp3安装mongodb报错

环境:
OS:麒麟V10 sp3
db:4.4.22

 

[root@localhost conf]# /usr/local/services/mongodb/bin/mongod -f /home/middle/mongodb/conf/mongo.cnf
/usr/local/services/mongodb/bin/mongod: error while loading shared libraries: libcrypto.so.10: cannot open shared object file: No such file or directory

 

检查依赖那些包

[root@localhost conf]# ldd /usr/local/services/mongodb/bin/mongod
        linux-vdso.so.1 (0x00007ffde5bc5000)
        libcurl.so.4 => /usr/lib64/libcurl.so.4 (0x00007fb355d81000)
        libresolv.so.2 => /usr/lib64/libresolv.so.2 (0x00007fb355d69000)
        libcrypto.so.10 => not found
        libssl.so.10 => not found
        libdl.so.2 => /usr/lib64/libdl.so.2 (0x00007fb355d64000)
        librt.so.1 => /usr/lib64/librt.so.1 (0x00007fb355d5b000)
        libm.so.6 => /usr/lib64/libm.so.6 (0x00007fb355bd8000)
        libgcc_s.so.1 => /usr/lib64/libgcc_s.so.1 (0x00007fb355bbf000)
        libpthread.so.0 => /usr/lib64/libpthread.so.0 (0x00007fb355b9f000)
        libc.so.6 => /usr/lib64/libc.so.6 (0x00007fb3559f2000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fb35a1de000)
        libnghttp2.so.14 => /usr/lib64/libnghttp2.so.14 (0x00007fb3559c8000)
        libidn2.so.0 => /usr/lib64/libidn2.so.0 (0x00007fb3559a6000)
        libssh.so.4 => /usr/lib64/libssh.so.4 (0x00007fb355935000)
        libpsl.so.5 => /usr/lib64/libpsl.so.5 (0x00007fb355922000)
        libssl.so.1.1 => /usr/lib64/libssl.so.1.1 (0x00007fb355888000)
        libcrypto.so.1.1 => /usr/lib64/libcrypto.so.1.1 (0x00007fb355593000)
        libgssapi_krb5.so.2 => /usr/lib64/libgssapi_krb5.so.2 (0x00007fb35553d000)
        libkrb5.so.3 => /usr/lib64/libkrb5.so.3 (0x00007fb355457000)
        libk5crypto.so.3 => /usr/lib64/libk5crypto.so.3 (0x00007fb35543c000)
        libcom_err.so.2 => /usr/lib64/libcom_err.so.2 (0x00007fb355436000)
        libldap-2.4.so.2 => /usr/lib64/libldap-2.4.so.2 (0x00007fb3553e8000)
        liblber-2.4.so.2 => /usr/lib64/liblber-2.4.so.2 (0x00007fb3553d7000)
        libbrotlidec.so.1 => /usr/lib64/libbrotlidec.so.1 (0x00007fb3553c9000)
        libz.so.1 => /usr/lib64/libz.so.1 (0x00007fb3553af000)
        libunistring.so.2 => /usr/lib64/libunistring.so.2 (0x00007fb355229000)
        libkrb5support.so.0 => /usr/lib64/libkrb5support.so.0 (0x00007fb355217000)
        libkeyutils.so.1 => /usr/lib64/libkeyutils.so.1 (0x00007fb355210000)
        libsasl2.so.3 => /usr/lib64/libsasl2.so.3 (0x00007fb3551f1000)
        libbrotlicommon.so.1 => /usr/lib64/libbrotlicommon.so.1 (0x00007fb3551ce000)
        libselinux.so.1 => /usr/lib64/libselinux.so.1 (0x00007fb3551a0000)
        libcrypt.so.1 => /usr/lib64/libcrypt.so.1 (0x00007fb355160000)
        libsecurity.so.0 => /usr/lib64/libsecurity.so.0 (0x00007fb35515b000)
        libpcre2-8.so.0 => /usr/lib64/libpcre2-8.so.0 (0x00007fb3550c5000)

 

 

安装
[root]# rpm -qa | grep libcrypto.so
[root]# rpm -qa | grep libcrypt
[root]# dnf install compat-openssl10

 

posted @ 2024-07-17 10:17  slnngk  阅读(71)  评论(0编辑  收藏  举报