"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
- 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

- Check whether OpenSSL is successfully installed.
If the OpenSSL version is displayed, the installation is successful.
openssl version
Parent topic: Nginx