error while loading shared libraries: libcrypto.so.3: cannot open shared object file: No such file or directory
This means the program you're trying to run depends on OpenSSL 3 (libcrypto.so.3), but your system either doesn’t have it installed, or it’s not in the correct library path.
🧩 1. Check your OpenSSL version
Run:
If you see something like:
then your system is using OpenSSL 1.1, and you’ll need to install OpenSSL 3.x.
🧰 2. Install OpenSSL 3
For Ubuntu 22.04 or newer:
For Ubuntu 20.04 or older, libssl3 isn’t in the default repository, so you’ll need to either:
- compile OpenSSL 3 manually, or
- copy/link the
libcrypto.so.3file from another system or a custom build.
⚙️ 3. If libcrypto.so.3 exists but isn’t found
Suppose you have it in /usr/local/lib64/.
You can make the system recognize it by creating a symbolic link or updating the library path.
Option 1 — create a symlink:
Option 2 — temporary fix for the current session:
🔍 4. Find where the library is
You can locate the file with:
Once you find it (for example /usr/local/lib64/libcrypto.so.3), link it to your system library directory such as /usr/lib or /usr/lib/aarch64-linux-gnu/ depending on your architecture.
