How to track down all required shared libraries?

Jeff Epler jepler at unpythonic.net
Sat Apr 30 22:57:41 EDT 2005


One poster suggests 'ldd' for executables.  You can also use this on shared
libraries:
$ ldd /usr/lib/python2.3/lib-dynload/_tkinter.so 
        libtix8.1.8.4.so => /usr/lib/libtix8.1.8.4.so (0x009b6000)
        libtk8.4.so => /usr/lib/libtk8.4.so (0x00111000)
        libtcl8.4.so => /usr/lib/libtcl8.4.so (0x00539000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x00a48000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x001de000)
        libc.so.6 => /lib/tls/libc.so.6 (0x001f0000)
        libdl.so.2 => /lib/libdl.so.2 (0x0052d000)
        libm.so.6 => /lib/tls/libm.so.6 (0x00fcf000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00656000)
If you know what shared modules your program uses, you can "ldd" them all and
find out the set of libraries they are linked to.

Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20050430/4d1ca737/attachment.sig>


More information about the Python-list mailing list