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

Today in this post, we will see one of the common error and its solution.

This error comes to me when i upgraded and ran openssl binary on my linux system, RHEL 7.

Lets see the error message and its solution.

I. Error Message

[user@ngelinux001{none}]/cds/palladium/tools/openssl/bin$ ./openssl 
./openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

 

II. Analysis

### Try to locate the binary on your system.
# locate libssl.so.1.1

### If not found download it and install on your system.
# wget https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/o/openssl11-libs-1.1.1k-4.el7.x86_64.rpm
# yum install ./openssl11-libs-1.1.1k-4.el7.x86_64.rpm

 

III. Solution

[root@ngelinux001 openssl]# yum install ./openssl11-libs-1.1.1k-4.el7.x86_64.rpm
Loaded plugins: aliases, changelog, kabi, langpacks, product-id, search-disabled-repos, subscription-manager, tmprepo, verify,
              : versionlock
This system is not registered with an entitlement server. You can use subscription-manager to register.
Loading support for Red Hat kernel ABI
Examining ./openssl11-libs-1.1.1k-4.el7.x86_64.rpm: 1:openssl11-libs-1.1.1k-4.el7.x86_64
Marking ./openssl11-libs-1.1.1k-4.el7.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package openssl11-libs.x86_64 1:1.1.1k-4.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================================
 Package                    Arch               Version                    Repository                                       Size
================================================================================================================================
Installing:
 openssl11-libs             x86_64             1:1.1.1k-4.el7             /openssl11-libs-1.1.1k-4.el7.x86_64             3.6 M

Transaction Summary
================================================================================================================================
Install  1 Package

Total size: 3.6 M
Installed size: 3.6 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 1:openssl11-libs-1.1.1k-4.el7.x86_64                                                                         1/1
base/productid                                                                                           | 1.6 kB  00:00:00
base2/productid                                                                                          | 1.6 kB  00:00:00
  Verifying  : 1:openssl11-libs-1.1.1k-4.el7.x86_64                                                                         1/1

Installed:
  openssl11-libs.x86_64 1:1.1.1k-4.el7

Complete!
[root@ngelinux001 openssl]#

[root@ngelinux001 openssl]# ./openssl
OpenSSL>

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments