注:以下方法同样适用于 libssl.so.10: cannot open shared object file: No such file or directory
、libssl.so.4: cannot open shared object file: No such file or directory等问题
库文件缺失问题
在打开数科阅读器时提示不能打开libcrypto.so.10库文件,或者linux软件操作使用过程中,经常出现其他libcrypto.so.10 no found 、 libssl.so.10 no found 、libssl.so.4 no found 等报错。
如下图提示 libcrypto.so.10出错,不能打开该共享库文件
问题描述:
运行一个程序,提示libcrypto.so.10共享库文件未找到。
error while loading shared libraries: libcrypto.so.10: cannot open shared object file: No such file or directory
原因分析:
软件包安装目录不包含该库,且/usr/lib/下也没有该共享库,导致软件启动不起来。
解决方法:
1.在网上或其他电脑找到libcrypto.so.10包并导入到本机/usr/lib/下
2.sudo find / -name "libcrypto.so.10"
查找本机其他位置是否有该文件,如:找到/opt/下有一个libcrypto.so.10文件,两种操作,直接复制或者创建软链接
-
方法(1).将libcrypto.so.10复制到/usr/lib下(#或打不开的软件安装目录下)
sudo cp /opt/libcrypto.so.10 /usr/lib/libcrypto.so.10
-
方法(2).创建软链接
ln -s /opt/libcrypto.so.10 /usr/lib/libcrypto.so.10
3.sudo apt install 或yum install 安装同名软件包libcrypto(#不一定有)