IT lexicon › Infra & Ops › ldconfig

ldconfig

Infra & Ops På svenska → Updated: 2026-11-14

Unix utility that caches available shared libraries and updates the dynamic linker's hints.

When a program uses dynamic libraries (.so files on Linux), the runtime linker needs to know where they live. Rather than searching everywhere, ldconfig maintains a cached database of standard library directories. It runs during system initialization or when new libraries are installed. Without an up-to-date cache, the runtime linker can fail to locate libraries and programs stop working — it's why you must run ldconfig after installing new C/C++ libraries on older systems.

← Back to the lexicon