D(o) Y(ou) LD_LIBRARY_PATH You?

J Freyensee
Jun 14, 2020 · 6 min read
Must be tough for Tux to find all those library entries

When one is working on compiling a binary in Linux or macOS and sees a “unable to load undefined symbol”, chances are a dynamic library is missing on the system. However, there are cases where the library is in fact on the system but it just cannot be found, like maybe the dynamic library is not installed in the right default path for the linker to find it. This is where the environment variable LD_LIBRARY_PATH can be a useful tool…