Interview Prep/Linux/Processes, memory and OOM

A binary fails with `error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory`.

BeginnerTroubleshootingProcesses, memory and OOM
Answer

Likely causes → The binary was built for another distro/version and the library version isn't installed (e.g. OpenSSL 1.1 vs 3 on newer distros).

Diagnose →

ldd ./app | grep 'not found'
ldconfig -p | grep libssl

Fix → Install the matching compat package if available, rebuild the binary for the current distro, or run it in a container with the right base image. Avoid symlinking libssl.so.3 to .so.1.1; ABIs differ.

Prevent → Build artefacts on the same OS version you deploy to, or ship containers.

All Linux questions Roadmap: Linux

More on Processes, memory and OOM