Skip to main content
IBM  
Shop Support Downloads
IBM Home Products Consulting Industries News About IBM
IBM developerWorks : Linux : Education - Tutorials
LPI certification 102 exam prep, Part 1
ZIPPDF (letter)PDF (A4)e-mail
Main menuSection menuFeedbackPrevious
Next Section
2. Shared libraries
  


LD_LIBRARY_PATH page 8 of 8


To instruct the dynamic loader to check a certain directory first, set the LD_LIBRARY_PATH variable to the directories that you would like searched. Separate multiple paths using commas; for example:


# export LD_LIBRARY_PATH="/usr/lib/old:/opt/lib"

After LD_LIBRARY_PATH has been exported, any executables started from the current shell will use libraries in /usr/lib/old or /opt/lib if possible, falling back to the directories specified in /etc/ld.so.conf if some shared library dependencies are still unsatisfied.

We've completed our coverage of Linux shared libraries. To learn more about shared libraries, type man ldconfig and man ld.so.


Next Section
Main menuSection menuFeedbackPrevious
Privacy Legal Contact