Checking the library dependencies of binaries ( executables, libraries )

Sometimes applications won’t start, plugins, libraries won’t load. Also sometimes the error messages just say they can’t be loaded. Ever wondered why they can’t load in such cases?
For situations like these we have tools that we can check said binaries with!

On Windows we have dependency walker, it’s a simple application really, you open the binary file that you want to check out, and then it shows the dependencies, even tells you if it can see problems:

20150309_000002204

On a Unix or Unix-like OS like Linux we have 2 tools to help, first there’s ldd, and objdump:
Ldd can show the dependencies recursively:

20150309_000002203

Objdump on the other hand shows the ones that are needed just by the binary in question:

20150309_000002202

They are very useful tools! So use them, next time you have such problems!

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: