Tagged articles
3 articles
Page 1 of 1
Liangxu Linux
Liangxu Linux
May 9, 2021 · Fundamentals

Mastering Linux Library Linking: From Static Archives to Dynamic Loading

This tutorial walks through Linux library management, demonstrating how to build and inspect static (.a) and shared (.so) libraries, configure runtime search paths with LD_LIBRARY_PATH, customize linker behavior, and handle multi‑architecture library locations using practical command‑line examples.

LD_LIBRARY_PATHLinuxStatic Linking
0 likes · 11 min read
Mastering Linux Library Linking: From Static Archives to Dynamic Loading
ITPUB
ITPUB
Sep 23, 2016 · Fundamentals

Mastering Linux Library Paths: Solving pkg-config and LD_LIBRARY_PATH Issues

This guide explains why Linux programs fail to locate shared libraries, walks through the mechanics of pkg-config and .pc files, and shows how to correctly set PKG_CONFIG_PATH and LD_LIBRARY_PATH to resolve both compile‑time and run‑time library‑search problems.

CompilationEnvironment VariablesLD_LIBRARY_PATH
0 likes · 13 min read
Mastering Linux Library Paths: Solving pkg-config and LD_LIBRARY_PATH Issues
ITPUB
ITPUB
Apr 4, 2016 · Operations

Fixing "error while loading shared libraries" on Linux: Causes & Solutions

This guide explains why Linux programs report "error while loading shared libraries" and provides four practical solutions—including running ldconfig, updating ld.so.conf, setting LD_LIBRARY_PATH, and creating symbolic links—to resolve missing or mismatched shared library issues.

LD_LIBRARY_PATHLinuxSymbolic Link
0 likes · 5 min read
Fixing "error while loading shared libraries" on Linux: Causes & Solutions