我要评分
获取效率
正确性
完整性
易理解

"No such file or directory" Displayed When Installing OpenSSL

Symptom

The message "openssl: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory" is displayed when you check whether OpenSSL is successfully installed.

Key Process and Cause Analysis

OpenSSL does not have the libcrypto.so.1.1 library file.

Conclusion and Solution

  1. Run the following commands to set the soft link:
    ln -s /usr/local/lib/libssl.so.1.1 /usr/lib64/libssl.so.1.1
    ln -s /usr/local/lib/libcrypto.so.1.1 /usr/lib64/libcrypto.so.1.1
    ldconfig

  2. Check whether OpenSSL is successfully installed.

    If the OpenSSL version is displayed, the installation is successful.

    openssl version