Tuesday, 31 May 2022

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

 [root@ISTELAR-DR ~]# openssl -version
openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
[root@ISTELAR-DR ~]# ll /usr/lib64/libssl*
-rwxr-xr-x 1 root root 339232 Oct  9  2018 /usr/lib64/libssl3.so
lrwxrwxrwx 1 root root     16 Sep 16  2019 /usr/lib64/libssl.so -> libssl.so.1.0.1e
-rwxr-xr-x 1 root root 324456 Mar  9  2016 /usr/lib64/libssl.so.0.9.8e
lrwxrwxrwx 1 root root     16 Sep 16  2019 /usr/lib64/libssl.so.10 -> libssl.so.1.0.1e
-rwxr-xr-x 1 root root 446344 Aug 13  2019 /usr/lib64/libssl.so.1.0.1e
lrwxrwxrwx 1 root root     16 Apr 23  2018 /usr/lib64/libssl.so.6 -> libssl.so.0.9.8e
[root@ISTELAR-DR ~]# echo $LD_LIBRARY_PATH

[root@ISTELAR-DR ~]# ll /usr/local/liblibssl*
lib/     lib64/   libexec/
[root@ISTELAR-DR ~]# ll /usr/local/lib64/libssl*
-rw-r--r-- 1 root root 1024502 May 31 19:01 /usr/local/lib64/libssl.a
lrwxrwxrwx 1 root root      13 May 31 19:01 /usr/local/lib64/libssl.so -> libssl.so.1.1
-rwxr-xr-x 1 root root  684412 May 31 19:01 /usr/local/lib64/libssl.so.1.1
-rwxr-xr-x 1 root root  766712 May 31 18:52 /usr/local/lib64/libssl.so.3
[root@ISTELAR-DR ~]# export LD_LIBRARY_PATH = /usr/local/lib64:$LD_LIBRARY_PATH
-bash: export: `=': not a valid identifier
-bash: export: `/usr/local/lib64:': not a valid identifier
[root@ISTELAR-DR ~]# export LD_LIBRARY_PATH=/usr/local/lib64:$LD_LIBRARY_PATH
[root@ISTELAR-DR ~]# ln -s /usr/local/lib64/libssl.so.1.1 /usr/lib64/libssl.so.1.1
[root@ISTELAR-DR ~]# ln -s /usr/local/lib64/libcrypto.so.1.1 /usr/lib64/libcrypto.so.1.1
[root@ISTELAR-DR ~]# openssl -version
Invalid command '-version'; type "help" for a list.
[root@ISTELAR-DR ~]# openssl version
OpenSSL 1.1.1o  3 May 2022
[root@ISTELAR-DR ~]#
[root@ISTELAR-DR ~]#
[root@ISTELAR-DR ~]#

No comments:

Post a Comment