Finding shared library dependencies


Using “ldd” command we can able to view the shared library dependencies of particular file.

Example:

[oracle@prodvm bin]$ ldd frmbld
        linux-gate.so.1 =>  (0xffffe000)
        librws.so.0 => /oracle/product/apps/DEV_HOME/lib/librws.so.0 (0xf7b2b000)
        libnn.so.0 => /oracle/product/apps/DEV_HOME/lib/libnn.so.0 (0xf7b1a000)
        libobx.so.0 => /oracle/product/apps/DEV_HOME/lib/libobx.so.0 (0xf78c9000)
        libzrc.so => /oracle/product/apps/DEV_HOME/lib/libzrc.so (0xf78ad000)
        libvgs.so.0 => /oracle/product/apps/DEV_HOME/lib/libvgs.so.0 (0xf77e3000)
        libde.so.0 => /oracle/product/apps/DEV_HOME/lib/libde.so.0 (0xf75f8000)
        libucol.so.0 => /oracle/product/apps/DEV_HOME/lib/libucol.so.0 (0xf75d2000)
        libca.so.0 => /oracle/product/apps/DEV_HOME/lib/libca.so.0 (0xf758e000)
        libuicc.so.0 => /oracle/product/apps/DEV_HOME/lib/libuicc.so.0 (0xf757a000)
        libmma.so.0 => /oracle/product/apps/DEV_HOME/lib/libmma.so.0 (0xf756f000)
        libmmiw.so.0 => /oracle/product/apps/DEV_HOME/lib/libmmiw.so.0 (0xf754a000)
        libmmov.so.0 => /oracle/product/apps/DEV_HOME/lib/libmmov.so.0 (0xf7547000)
        libmmos.so.0 => /oracle/product/apps/DEV_HOME/lib/libmmos.so.0 (0xf752f000)
        libmmoi.so.0 => /oracle/product/apps/DEV_HOME/lib/libmmoi.so.0 (0xf7503000)
        libmmia.so.0 => /oracle/product/apps/DEV_HOME/lib/libmmia.so.0 (0xf7500000)
        libmmft.so.0 => /oracle/product/apps/DEV_HOME/lib/libmmft.so.0 (0xf74fb000)
        libmmcm.so.0 => /oracle/product/apps/DEV_HOME/lib/libmmcm.so.0 (0xf74db000)
        libuihx.so.0 => /oracle/product/apps/DEV_HOME/lib/libuihx.so.0 (0xf74d8000)
        libuc.so.0 => /oracle/product/apps/DEV_HOME/lib/libuc.so.0 (0xf747f000)
        libuipr.so.0 => /oracle/product/apps/DEV_HOME/lib/libuipr.so.0 (0xf7428000)
        libuimotif.so.0 => /oracle/product/apps/DEV_HOME/lib/libuimotif.so.0 (0xf728d000)
        libot.so.0 => /oracle/product/apps/DEV_HOME/lib/libot.so.0 (0xf726b000)
        librem.so.0 => /oracle/product/apps/DEV_HOME/lib/librem.so.0 (0xf7230000)
        libree.so.0 => /oracle/product/apps/DEV_HOME/lib/libree.so.0 (0xf71d9000)
        librec.so.0 => /oracle/product/apps/DEV_HOME/lib/librec.so.0 (0xf71cb000)
        libuiimg.so.0 => /oracle/product/apps/DEV_HOME/lib/libuiimg.so.0 (0xf71ba000)
        libuia.so.0 => /oracle/product/apps/DEV_HOME/lib/libuia.so.0 (0xf718f000)
        libtknqap.so.0 => /oracle/product/apps/DEV_HOME/lib/libtknqap.so.0 (0xf718d000)
[oracle@prodvm bin]$