Friday, June 03, 2005

ldd on solaris 8

A mighty useful tool.

ldd - list dynamic dependencies of executable files or shared objects.


bash-2.03# ldd libphp4.so
libpq.so.3 => /usr/local/pgsql/lib/libpq.so.3
libmysqlclient.so.10 => (file not found)
libpng.so.3 => /usr/local/lib/libpng.so.3
libz.so => /usr/local/lib/libz.so
libjpeg.so.62 => /usr/local/lib/libjpeg.so.62
libssl.so.0.9.7 => /usr/local/openssl/lib/libssl.so.0.9.7
libcrypto.so.0.9.7 => /usr/local/openssl/lib/libcrypto.so.0.9.7
libresolv.so.2 => /usr/lib/libresolv.so.2
libm.so.1 => /usr/lib/libm.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libsocket.so.1 => /usr/lib/libsocket.so.1
libc.so.1 => /usr/lib/libc.so.1
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
libmp.so.2 => /usr/lib/libmp.so.2
/usr/platform/SUNW,UltraAX-i2/lib/libc_psr.so.1