符号链接 libssl.so.6 显示在 中/usr/lib/x86_64-linux-gnu
,我运行了ldconfig
但仍然收到此错误:
error while loading shared libraries: libssl.so.6: cannot open shared object file: No such file or directory
是权限问题还是链接定义不正确?
在二进制文件上运行 ldd 后更新:
linux-vdso.so.1 => (0x00007fff1efe2000)
libssl.so.6 => not found
libcrypto.so.6 => not found
libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007feb2a3c4000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007feb2a1bb000)
libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007feb29f82000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007feb29d65000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007feb29b60000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007feb297a1000)
/lib64/ld-linux-x86-64.so.2 (0x00007feb2b159000)
答案1
从ldd
命令来看,二进制文件正在查找/lib/x86_64-linux-gnu
而不是/usr/lib/x86_64-linux-gnu
您找到符号链接的位置。
尝试运行这些命令,看看是否仍然出现相同的错误:
sudo ln -s /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /lib/x86_64-linux-gnu/libcrypto.so.6
sudo ln -s /lib/x86_64-linux-gnu/libssl.so.1.0.0 /lib/x86_64-linux-gnu/libssl.so.6