102.3 Manage Shared Libraries Flashcards
1
Q
What is a shared library?
A
- Files containing functionality that other applications can use
- These files and in a .so for shared object
- Found in the following locations on a Linux system
- /lib
- /usr/lib (for 32 bit systems) and /usr/lib64 (for 64 bit systems)
- /usr/local/lib
- /usr/share
Two types of library files
- Dynamic (ends in .so)
- Statically linked (ends in .a)
2
Q
How do you produce a list of dependencies for a particular binary?
A
use ldd
3
Q
How do you configure dynamic linker run-time bindings?
A
ldconfig
Creates a cache based on library directory locations.
4
Q
What is the legacy environment variable that points to a path where library files can be read from?
A
LD_LIBRARY_PATH
5
Q
What is configuration file that points to a path where library files can be read from?
A
/etc/ld.so.conf