Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 7 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.