Tag Archives: ldd

Unix / Linux: How to Print Shared Library Dependencies

unix linux

Almost all programs on UNIX and/or Linux use shared libraries. Only some programs, like the root shell, /sbin/sh, on old versions of Solaris, used to be statically linked. It is no longer the case for the current Solaris releases. It was mainly due to historical reasons when disks used to be small in size (usually 128MB or less in size) and the shared libraries in /usr/lib were mounted from a second disk or NFS server. If you boot a server into single-user mode, it may not mount partitions other than the root partition, thereby breaking any dynamically linked program.