Linux Commands Examples

A great documentation place for Linux commands

ldd

print shared library dependencies


see also : ldconfig

Synopsis

ldd [OPTION]... FILE...


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
source
            
cd bin
export LD_LIBRARY_PATH=.
ldd GAME
./GAME

description

ldd prints the shared libraries required by each program or shared library specified on the command line.

options

--version

Print the version number of ldd.

-v --verbose

Print all information, including e.g. symbol versioning information.

-d --data-relocs

Perform relocations and report any missing objects (ELF only).

-r --function-relocs

Perform relocations for both data objects and functions, and report any missing objects or functions (ELF only).

-u --unused

Print unused direct dependencies.

--help

Usage information.


bugs

ldd does not work on a.out shared libraries.

ldd does not work with some extremely old a.out programs which were built before ldd support was added to the compiler releases. If you use ldd on one of these programs, the program will attempt to run with argc = 0 and the results will be unpredictable.


see also

ldconfig , ld.so.


author

Roland McGrath and Ulrich Drepper.

How can this site be more helpful to YOU ?


give  feedback