Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there a tool like Windows DependencyWalker for Ubuntu ? I would like to see all shared libraries my executable depends on.

share|improve this question
add comment

1 Answer 1

up vote 13 down vote accepted

In a terminal, execute:

ldd /path/to/your_executable

Example:

~$ ldd /bin/ls
        linux-vdso.so.1 =>  (0x00007fff78fea000)
        libselinux.so.1 => /lib/libselinux.so.1 (0x00007f1940858000)
        librt.so.1 => /lib/librt.so.1 (0x00007f1940650000)
        libacl.so.1 => /lib/libacl.so.1 (0x00007f1940447000)
        libc.so.6 => /lib/libc.so.6 (0x00007f19400c4000)
        libdl.so.2 => /lib/libdl.so.2 (0x00007f193fec0000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f1940a99000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00007f193fca2000)
        libattr.so.1 => /lib/libattr.so.1 (0x00007f193fa9d000)
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.