Skip to content
Latchkey

Library Path - CI/CD Glossary Definition

A library path tells the linker and loader where to find libraries, at build time and at run time respectively.

A library path is the list of directories the linker (build time) or loader (run time) searches for libraries, set with -L for linking and LD_LIBRARY_PATH for loading on Linux.

A library path is the list of directories the linker (build time) or loader (run time) searches for libraries, set with -L for linking and LD_LIBRARY_PATH for loading on Linux.

In CI

Link errors ("cannot find -lfoo") and loader errors ("cannot open shared object file") both trace back to a library path that is correct locally but missing on the runner. Set -L and LD_LIBRARY_PATH in the workflow, or install the library via the package manager.

Related guides

Run this faster and cheaper on Latchkey managed runners. Start free →