Friday, June 24, 2011

Find libraries in Ubuntu using the 'ldd' command

http://code.google.com/p/google-gadgets-for-linux/issues/detail?id=323
$ldd /usr/bin/ggl-gtk
linux-gate.so.1 =>  (0xb7f6a000)
libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb7ba7000)
libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xb7b8c000)
libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xb7b62000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7aeb000)
libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb7a5e000)
libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb7a44000)
libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0xb7a38000)
...
$ldd /usr/lib/google-gadgets/modules/libxml2-xml-parser.so
linux-gate.so.1 =>  (0xb7f71000)
libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb7e19000)
libggadget-1.0.so.0 => /usr/local/lib/libggadget-1.0.so.0 (0xb7aa3000)
...

No comments: