Managing Shared Libraries Flashcards
system library
collection of items, such as program functions
functions
self-contained code modules that perform a specific task within an applications
what are the two types of libraries that linux supports
static and dynamic
static libraries
copied into an application when it is compiled
dynamic libraries
library functions are copied into memory and bound to the application when the program is launched
what is the library naming convention
libLIBRARYNAME.so.VERSION
When a program is using a shared function, the system will search for the function’s library file in what specific order?
- LD_LIBRARY_PATH environmental variable; 2. Program’s PATH environmental variable; 3. /etc/ld.so.conf.d/ folder; 4. /etc/ld.so.conf file; 5. /lib/ and /user/lib/ folders
dynamic link loader
responsible for finding the program’s needed library functions
library cache
catalog of library directories and all the various libraries contained within them
ldconfig
library cache file
ldd
tracks down missing library files for an application