Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What I am trying to do is figure out what deps, well, really what files a binary uses. Like a trace or something. I tried ldd it did not give me what I was looking for. Thanks.
What I am trying to do is figure out what deps, well, really what files a binary uses. Like a trace or something. I tried ldd it did not give me what I was looking for. Thanks.
If the binary is running, get is PID using the "ps" command and then use "lsof" to show what files it has open. But I don't know if this is exactly what you're looking for or not.
e.g.,
Code:
ps -ef | grep bash
... say this returns "26312" ... then run:
Code:
lsof -p 26312
You will need to be root to fully trace out some processes if you don't own them.
the best thing to do would be to go to the website of the software developer, try google first and then sourceforge.net and look for the software by name. MOst packages have instructions to install from source, and with that, the needed dependencies.
good luck!
www.rpm-seek.com is a decent site to tell you what depends, supplies, etc. I dont' use rpm distros, but that site has come in handy a few times with dependencies.
Well I can see by the responses that this is an ambiguous question. I thought you were asking what files a running binary uses, and others thought you were asking what files you need to compile a specific binary. I guess you should specify (well actually, answers to both are here already!)
What I am trying to do is figure out what deps, well, really what files a binary uses. Like a trace or something. I tried ldd it did not give me what I was looking for. Thanks.
objdump -x /path/to/binary | grep NEEDED maybe what you are looking for...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.