Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Check for dependencies, Can it be done?< Next Oldest | Next Newest >
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Mar. 12 2007,04:03 QUOTE

Is there a way to check what libraries (and other files) an exectutable depends upon apart from trial and error?

The reason I ask is that I have made several extensions from Debian stable that contain many packages and I am not at all sure that all of the libraries (or other files) in the packages are required.

In the case of bluez-utils, I tried compiling from binaries but the result is even larger (admittedly for a more recent version) than the Debian stable package version.
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Mar. 12 2007,04:11 QUOTE

ldd /path/to/executable

This will tell you what libraries are needed by an executable, but I don't think it will tell you if those libraries depend on other libraries.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
Felson Offline





Group: Members
Posts: 54
Joined: Jan. 2007
Posted: Mar. 12 2007,16:12 QUOTE

Ya, ldd is what you are looking for. However, some programs load things useing an "exec" commmand (eg shell execute) So, ldd tells you all the libs you need for your current executable, but you will still need to test all the functions to be sure they work. then ldd any other executables that are needed from there.
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Mar. 12 2007,17:11 QUOTE

Thanks - 'seems to work for executables and also for libraries to see if they in turn depend on other libraries
Back to top
Profile PM 
Felson Offline





Group: Members
Posts: 54
Joined: Jan. 2007
Posted: Mar. 12 2007,17:28 QUOTE

I think it nests... That is, if you check a file, it automaticly tests all the files that depend on the ones it needs, and so on till it is done.
Back to top
Profile PM 
4 replies since Mar. 12 2007,04:03 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Check for dependencies

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code