linux binary equivalent to ldd?

Saint Aardvark the Carpeted aardvark at
Wed Feb 18 21:05:40 PST 2004

Jesse Guardiani disturbed my sleep to write:
> How do I get info similar to what ldd gives out of a linux
> binary? If I run this:
>     /usr/compat/linux/usr/bin/ldd /usr/local/lib/RealPlayer8/
> I get this:
> /usr/compat/linux/usr/bin/ldd: /lib/ not found
> ldd: /lib/ $exited with unknown exit code (127)
> Exit 1

Hm...if you've got the Linux compatibility stuff, you should (I think)
have this too.  Try:


On my system, it shows it as being a symlink to
/usr/compat/linux/lib/  Assuming it shows up, try

	/compat/linux/sbin/ldconfig -p | grep ld-linux

just to confirm that ldd really can't find it.  If it's not listed, try


to update the list of libraries it knows about.

Usually that should be done at boot-time by the /etc/rc script -- have
you got the right option set in /etc/rc.conf?  (linux_enable="YES")

Hope that helps,
Saint Aardvark the Carpeted
aardvark at
Because the plural of Anecdote is Myth.

More information about the freebsd-questions mailing list