首页 » linux » 解决openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory错误

解决openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory错误

 

问题

在Centos7上编译安装openssl后,运行openssl version出现如下错误:

openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

这是由于openssl库的位置不正确造成的。

解决方法:

在root用户下执行:

ln-s /usr/local/lib64/libssl.so.1.1 /usr/lib64/libssl.so.1.1 ln-s /usr/local/lib64/libcrypto.so.1.1 /usr/lib64/libcrypto.so.1.1

原文链接:解决openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory错误,转载请注明来源!

0