# -+- number -+- category -+- title -+- email -+- name -+- homepage -+- clickOnName -+- language -+- image -+- browser-used -+- security-cookie =0 -+- 2000-02-15:2 -+- UNIX Basics -+- Finding out what libraries a program requires -+- guido.s@writeme.com -+- Guido Socher -+- -+- nolink -+- English -+- -+- Mozilla/4.7 [en] (X11; I; Linux 2.2.10 i586; Nav) -+- 6531
  1. First find out where the program is located:
    In bash use: type yourprogram
    In tcsh use: which yourprogram

  2. To find out which shared libraries a program requires, type:
    ldd /the/path/to/yourprogram

Example:
> which gnome-terminal
/usr/bin/gnome-terminal

> ldd /usr/bin/gnome-terminal
        libart_lgpl.so.2 => /usr/lib/libart_lgpl.so.2 (0x400e1000)
        libgdk_imlib.so.1 => /usr/lib/libgdk_imlib.so.1 (0x400ef000)
        libgtk-1.2.so.0 => /usr/lib/libgtk-1.2.so.0 (0x40131000)
        libgdk-1.2.so.0 => /usr/lib/libgdk-1.2.so.0 (0x40251000)
        libgmodule-1.2.so.0 => /usr/lib/libgmodule-1.2.so.0 (0x40283000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40286000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40292000)
        libgnome.so.32 => /usr/lib/libgnome.so.32 (0x4032f000)
        libgnomesupport.so.0 => /usr/lib/libgnomesupport.so.0 (0x40345000)
        libaudiofile.so.0 => /usr/lib/libaudiofile.so.0 (0x40350000)
        ....