Generic

ID #1210

How can I tell what libs a certain binary requires?

FREESCO supports ELF (Executable and Linking Format) binaries. This means a binary may require certain loadable libraries on the target system to run. This can be compared to the windoze DLL system, only better ;)

But how can you tell what libraries a certain executable requires? The command to get this information is called ldd and unfortunally it's not standard available on FREESCO, so you either have to get the command from a zipslack 3.9, get the attachement from this FAQ, or install the utils_1.1_dingetje package (FREESCO 03x).

Sample run:
<?php
[Linux] ldd xterm
libXft
.so.2 =&gt; not found
libfontconfig
.so.1 =&gt; not found
libfreetype
.so.6 =&gt; /lib/libfreetype.so.6 (0x40009000)
libexpat.so.0 =&gt; not found
libXrender
.so.1 =&gt; not found
libXaw
.so.7 =&gt; not found
libXmu
.so.6 =&gt; not found
libXt
.so.6 =&gt; not found
libSM
.so.6 =&gt; not found
libICE
.so.6 =&gt; not found
libXpm
.so.4 =&gt; not found
libXext
.so.6 =&gt; not found
libX11
.so.6 =&gt; not found
libtermcap
.so.2 =&gt; /lib/libtermcap.so.2 (0x4003f000)
libc.so.5 =&gt; /lib/libc.so.5 (0x40042000)

?>

This output tells me that a sh*tload of X libs is missing on my system, so xterm is not going to run.

attached files: ldd

Last update: 2005-07-02 00:38
Author: dingetje
Revision: 1.0

Print this record Print this record
Send to a friend Send to a friend
Show this as PDF file Show this as PDF file
Export as XML-File Export as XML-File

Please rate this entry:

Average rating: 0 from 5 (0 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry