error while loading shared libraries: libcrypto.so.1.1
I was having the same issue after install the last version of openssl 1.1.0c, I resolved the issue copying the library files libcrypto.so.1.1
, libcrypto.a
and libssl.so
from /usr/local/lib64
to the share library at /usr/lib64
.
After copy the libraries you need to create the symbolic link.
ln -s libcrypto.so.1.1 libcrypto.so
ln -s libssl.so.1.1 libssl.so
After creating the symbolic link rebuilding the ldconfig cache was required as well:
sudo ldconfig
With your original version of OpenSSL it knew how to find the shared libs because /usr/lib64
is included in the linker's search path. When you downloaded and compiled a "local" copy of OpenSSL, the shared libs were placed in /usr/local/lib64
by default. So you probably just need to add this directory to the search path of the linker, like this (as root):
echo "/usr/local/lib64" > /etc/ld.so.conf.d/openssl.conf
then execute:
ldconfig
I believe this will resolve your issue.
You can reinstall it using
yum install -y openssl-devel