Prev | Current Page 1421 | Next

Christopher Negus

"Linux Bible, 2008 Edition: Boot up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 11 Other Distributions"

It has the following syntax:
ldconfig [options] [libs]
Running ldconfig with no arguments simply updates the cache file, /etc/ld.so.cache.
options control ldconfig??™s behavior. The -v option tells ldconfig to be verbose as it updates
the cache. The -p option says to print without updating the current list of shared libraries about
which ld.so knows. To see what ldconfig is doing when updating the cache, the -v option
will print out a display of directories and symlinks ldconfig has found.
Environment Variables and Configuration Files
The dynamic linker/loader ld.so uses a number of environment variables to customize and control
its behavior. These variables include:
 $LD_LIBRARY_PATH: This variable contains a colon-separated list of directories in which
to search for shared libraries at runtime. It is similar to the $PATH environment variable.
 $LD_PRELOAD: This variable is a whitespace-separated list of additional, user-specified
shared libraries to load before all other libraries. It is used selectively to override functions
in other shared libraries.
ld.so also uses two configuration files whose purposes parallel those environment variables:
 /etc/ld.so.conf: Contains a list of directories that the linker/loader should search for
shared libraries in addition to the standard directories, /usr/lib and /lib, as well as
/lib64 on 64-bit architecture systems.


Pages:
1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433