I always keep forgetting these things. So here are some facts about the shared libraries.
- use the
command to see the dependencies of an executable.
- LD_LIBRARY_PATH hold the paths to the directories of the shared libraries. For testing you might change this for an application execution like this: LD_LIBRARY_PATH=<path to shared library>:$LD_LIBRARY_PATH <executable>
Most information about library handling is covered here.