Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find dependent libraries [duplicate]

I got a C/C++ application, i need to determine all (shared) libraries on which it is dependent, so i can share it with other people along with libraries so they don't have to install any package, on Linux.

So is it possible to determine all libraries on which a C++ application is dependent?

A little clarification, i dont have application makefiles for the moment, thats why i have to find another way.

like image 326
Saqlain Avatar asked May 29 '13 06:05

Saqlain


2 Answers

I think for linux you can use ldd command. You can see the man page for this command or also find this here http://linux.about.com/library/cmd/blcmdl1_ldd.htm.

like image 159
Apoorva sahay Avatar answered Sep 20 '22 14:09

Apoorva sahay


Try to use ldd which will list the dependent libraries for that executable

like image 41
Raghuram Avatar answered Sep 18 '22 14:09

Raghuram