Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

How can I find the search path of ldd? Assume ldd returns

[mahmood@dhcppc2 bin]$ ldd /home/mahmood/amd64-linux/lib/ =>  (0x00007fffc27c7000) => /lib64/ (0x00007ffb13a25000) => not found => /lib64/ (0x00007ffb137a0000) => /lib64/ (0x00007ffb13589000) => /lib64/ (0x00007ffb131f6000)
        /lib64/ (0x00000037d6000000)

I want to know what is the default location for ldd? I mean /lib64 or /usr/lib or /usr/lib64 ....?

share|improve this question

2 Answers 2

up vote 6 down vote accepted

The ldconfig command will show these paths for you...

ldconfig -v | grep -v ^$'\t'

The paths are set in /etc/ and /etc/

share|improve this answer

Usually this is set on /etc/

share|improve this answer

Your Answer


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.