S
S
Satisfied IT2018-05-07 15:49:38
CentOS
Satisfied IT, 2018-05-07 15:49:38

Openssl won't start without full path, why?

I inherited a machine with centos 6.9, everything is generally good, but one problem with openssl is slightly annoying. If you run it in the console, openssl versionyou will see an error in the output:

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

If you run it with the full path, for example like this /usr/bin/openssl versionor like this, /usr/local/ssl/bin/openssl versionthen everything works fine and shows the version of OpenSSL 1.0.2o 27 Mar 2018.
find / -iname 'libssl*'gives:
/opt/openssl/lib/pkgconfig/libssl.pc
/opt/openssl/lib/libssl.a
/opt/openssl/lib/libssl.so.1.1
/opt/openssl/lib/libssl.so
/usr/lib64/pkgconfig/libssl.pc
/usr/lib64/libssl.so.10
/usr/lib64/libssl.so.1.0.1e
/usr/lib64/libssl3.so
/usr/lib64/libssl.so
/usr/src/openssl-1.0.2o/libssl.a
/usr/src/openssl-1.0.2o/libssl.pc
/usr/local/lib64/pkgconfig/libssl.pc
/usr/local/lib64/libssl.a
/usr/local/lib64/libssl.so.1.1
/usr/local/lib64/libssl.so
/usr/local/ssl/lib/pkgconfig/libssl.pc
/usr/local/ssl/lib/libssl.a

and libssl.so.1.1 finds
How to fix this behavior and what is the reason?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Satisfied IT, 2018-05-07
specialist @borisdenis

Question closed, copied /usr/local/lib64/libssl.so.1.1 and /usr/local/lib64/libcrypto.so.1.1 to /usr/lib64/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question