whatis shared-library

Shared Library

Also known as: .so, dynamic library, ldd

A compiled .so file of code that many programs load at runtime instead of each including its own copy, such as libc.so.6.

What Is a Shared Library (.so) in Linux?

Dynamically linked programs list the shared libraries they need, and the dynamic linker finds and loads them at startup from paths like /usr/lib. Updating one library patches every program that uses it.

ldd /path/to/binary shows which libraries a program will load. "error while loading shared libraries" means one is missing or the wrong version.

Example

ldd /usr/bin/curl