6

I'm trying to run a binary file but I get:

./binary: error while loading shared libraries: libcrypto.so.3: cannot open shared object file: No such file or directory

I already tried resolving it by installing libssl-dev as said here, or installing openssl (my version is 1.1.1f 31 Mar 2020) as said here.

Both solutions didn't work. Which other solutions I could try to fix it?

Thanks for you help!

2 Answers2

3

Here is a few more options for you:

  1. Check if the library exist with find / -name libcrypto.so.3 if it exist apply this export LD_LIBRARY_PATH=/path/to/lib:$LD_LIBRARY_PATH ( with the good path )

  2. Install the libssl3 package sudo apt-get install libssl3-dev

  3. If that still dont work you can also simply trying reinstalling the library

Saxtheowl
  • 2,394
  • 2
  • 12
  • 22
1

I solved this by installing OpenSSL libraries by myself.

It uses GNU Autotools.

  1. Download a release from https://github.com/openssl/openssl.
  2. Read https://github.com/openssl/openssl/blob/master/NOTES-UNIX.md, and do Configure.
  3. Then lovely make, then make install.
  4. Do not forget to update your LD_LIBRARY_PATH, also you can add export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:path/to/openssl/installation to .bashrc.
vityaman
  • 11
  • 1