click below
click below
Normal Size Small Size show me how
Shared Libraries
Dynamic and Static
Question | Answer |
---|---|
File extension for dynamic libraries | .so or .so.version |
File extension for Static libraries | .a |
Where shared libraries are stored | /usr/lib and /usr/local/lib |
Contains special files and utilities needed for Linux to handle dynamic libraries. Finds and loads the shared libraries needed by a program | /lib/ld.so |
Contains a simple list of directories to scan for libraries, in addition to `/usr/lib' and `/lib', which are hardwired. | /etc/ld.so.conf |
A file created by ldconfig and used to speed linking. | /etc/ld.so.cache |
Environment variable to specify additional directories to search for library files | LD_LIBRARY_PATH |
Find out which libraries are used by another library (library dependencies | ldd |
ldd Options: Dispay all info (Verbose) | ldd -v |
ldd Options: Display unused direct dependencies | ldd -u |
ldd Options: Updates symbolic links – but not cache | ldd -N |
ldd Options: Updates links contained in directories | ldd -n |
ldd Options: Updates cache – but not symbolic links | ldd -X |
ldd Options: Changes the configuration file from /etc/ld.so.conf default | ldd -f |
ldd Options: changes the cache location for the /etc/ld.so.cache default | ldd -C |
ldd Options: Treat a new directory as if it were the root directory | ldd -r |
ldd Options: Display current library cache | ldd -P |
ldd Option: Display version number of ldd | ldd --version |
File containing a list of colon, space, tab, newline, or comma-separated directories in which to search for libraries. | /etc/ld.so.conf |
File containing an ordered list of libraries found in the directories specified in /etc/ld.so.conf, as well as those found in /lib and /usr/lib. | /etc/ld.so.cache |
Command used to create the /etc/ld.so.cache file which speeds up linking | ldconfig |
Reloads the library cache every time libraries are added or removed - creates the necessary links and cache for the most recent shared libraries found in the directories specified on the command line, in the file /etc/ld.so.conf | ldconfig |
ldconfig Options: Summarizes the directories and files it is registering as it reloads the cache | ldconfig -v |
ldconfig Options: Update symbolic links, but not the cache | ldconfig -N |
ldconfig Options: updates the cache but not sysmbolic links | ldconfig -X |
ldconfig Options: Updates the links contained in drectories specified on the command line | ldconfig -n |
ldconfig Options: Change the configuration file from the /etc/ld.so.cache default | ldconfig -f |
ldconfig Options: Change the cache location for the /etc/ld.so.cache default | ldconfig -C |
ldconfig Options: Treat a new directory as if it were the root directory - useful when recovering a corrupted system or installing a new OS | ldconfig -r |
ldconfig Options; Display the current library cache, including all the library directories and their respective libraries | ldconfig -p |