Libtree is tool that turns ldd into a tree, and explains how shared libraries are found or why they cannot be located.