Команда ldd
Есть какая то shared library (например libCSGcsvPP.so), нужно посмотреть её зависимости:
$ ldd libCSGcsvPP.so
libCSGcsvPP.so needs:
/dm/appl/BDDM/lib/libMECS.so
/usr/lib/libthread.a(shr.o)
/usr/lib/libC.a(shr.o)
/usr/lib/libC.a(ansi_32.o)
/usr/lib/libc.a(shr.o)
/usr/lib/lib++.so
/u01/app/oracle/product/9.2.0.5.0/lib/libclntsh.a(shr.o)
/usr/lib/libpthreads.a(shr_xpg5.o)
/usr/lib/librtl.a(shr.o)
/usr/lib/libc_r.a(shr.o)
/usr/lib/libC.a(ansicore_32.o)
/usr/lib/libC.a(shrcore.o)
/usr/lib/libC.a(shr2.o)
/usr/lib/libC.a(shr3.o)
/unix
/usr/lib/libcrypt.a(shr.o)
/usr/lib/libdl.a(shr.o)
/usr/lib/libodm.a(shr.o)
/usr/lib/libc.a(aio.o)
/usr/lib/libpthreads.a(shr_comm.o)
libCSGcsvPP.so needs:
/dm/appl/BDDM/lib/libMECS.so
/usr/lib/libthread.a(shr.o)
/usr/lib/libC.a(shr.o)
/usr/lib/libC.a(ansi_32.o)
/usr/lib/libc.a(shr.o)
/usr/lib/lib++.so
/u01/app/oracle/product/9.2.0.5.0/lib/libclntsh.a(shr.o)
/usr/lib/libpthreads.a(shr_xpg5.o)
/usr/lib/librtl.a(shr.o)
/usr/lib/libc_r.a(shr.o)
/usr/lib/libC.a(ansicore_32.o)
/usr/lib/libC.a(shrcore.o)
/usr/lib/libC.a(shr2.o)
/usr/lib/libC.a(shr3.o)
/unix
/usr/lib/libcrypt.a(shr.o)
/usr/lib/libdl.a(shr.o)
/usr/lib/libodm.a(shr.o)
/usr/lib/libc.a(aio.o)
/usr/lib/libpthreads.a(shr_comm.o)