A program that contains references to external, shared libraries is dynamically linked at runtime by the dynamic linker, ld.so.
New locations for shared libraries can be added to the
LD_LIBRARY_PATHvariable. As an alternative, the locations can be added to /etc/ld.so.conf, which lists library file directories. After this, you must run /sbin/ldconfig to translate this file into the binary index /etc/ld.so.cache.