LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-20-2006, 12:02 PM   #1
pxumsgdxpcvjm
Member
 
Registered: Aug 2005
Posts: 235

Rep: Reputation: 30
How to "discover" the dependencies


Hi

After succesfully installing the base system, I decided to set up a web server with php. Apache was already installed but php wasn't (I deselected it in the setup). After reading the SlackBook, I deduced the way to install PHP was by entering pkgtool and selecting it... Well, it obviously wasn't. I went to LinuxPackages.net and downloaded the version I was looking for. I installed it and when I tried to run php I saw that I was lacking something about libmhash. I downloaded it and tried again, but this time I was getting an "Illegal instruction" error. Well, now I've been searching through this forum, google and PHP docs to find out which are the dependencies needed, and the result is me asking this forum again

The point is: I like to manually install the packages and I want to continue doing so (just to learn a bit), but I really don't know how to "discover" the dependencies for each package. Could someone tell me the "normal" way of doing so?

Thanks for your time
 
Old 06-20-2006, 12:07 PM   #2
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
this worked for me with artsd
Code:
ldd `which artsd`
Just replace artsd with the binary you want to check.

regards,
...aaron
 
Old 06-20-2006, 01:02 PM   #3
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Try slackdeptrack. You can get it here:
http://distro.ibiblio.org/pub/linux/...3-noarch-2.tgz
 
Old 06-20-2006, 01:57 PM   #4
pxumsgdxpcvjm
Member
 
Registered: Aug 2005
Posts: 235

Original Poster
Rep: Reputation: 30
slackdeptrack has worked fine (just what is was searching for!). Thanks

PD: the ldd command seemed to be too difficult to understand for me
 
Old 06-20-2006, 02:08 PM   #5
pbhj
Member
 
Registered: Dec 2002
Location: UK
Distribution: Slackware 12; Ubuntu 7.10
Posts: 358

Rep: Reputation: 32
Quote:
Originally Posted by drkstr
Code:
ldd `which artsd`
Just replace artsd with the binary you want to check
Yeah, that's fine if you've got it installed already; but I presume that new versions have changed dependencies, and often (with more obscure apps) you don't already have an install.

I had this problem with WINE. I grabbed and installed the package using slapt-get (which more often than not works, and will even block install if it can't find a package to fulfill a dep.). It wouldn't run. So I had to grab the source and ./configure before I found that I needed bison (and something else I can't recall).

The other problem with knowing the lib's required is that it doesn't necessarily tell you what packages you need.

I think I need to try this slackdeptrack ...

OK had a quick look: it doesn't do cascaded dependencies, nor does it show any not yet installed packages that you need. So I guess it only helps when you're installing something new if someone with it installed can run slackdeptrack for you and tell you what you need?!?
 
Old 06-20-2006, 02:26 PM   #6
liquidtenmilion
Member
 
Registered: May 2004
Location: South Carolina
Distribution: Slackware 11.0
Posts: 606

Rep: Reputation: 32
I always just did an ldd `which binaryname`, and then used either common sense or packages.debian.org to find out what library I needed.


It became way too much work, and now I usually just compile from source, except for small dependencies(Such as rar, or libdvdcss) that I get from linuxpackages.net.
 
Old 06-20-2006, 02:28 PM   #7
the_real_absinthe
LQ Newbie
 
Registered: May 2006
Distribution: slackware linux
Posts: 28

Rep: Reputation: 15
well,

I'm a really terrible coder and I have few spare time, but I'm working on a pkgtools wrapper (in bash, of course :P) that takes care of retrive dependencies showing them as tgz if they are installed -the script launch ldd and after greps around in /var/log/packages-. I don't know if there will be a v.1.1 (I've released a terrible v.1.0rc1) but the basic concept will be the following:
if I can grep around inside the MANIFEST.bz file I can find each tgz related to each dependency of an ELF file (generalizing: I can find each tgz related to each dependency of _ALL_ ELF files belonging to a given tgz).

you can try it by yourself: do a simple script that find all binaries inside a tgz, greps all retrived dependencies against MANIFEST.bz and after shows those deps in terms of tgz! a nice exercise - with some intrinsic aleatory behavior I suppose -

M

Last edited by the_real_absinthe; 06-20-2006 at 02:30 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"discover" -- now no more apt-get michapma Debian 17 09-25-2004 07:23 AM
Mandrake 9.0 hangs on boot at "checking distribution dependencies" patpawlowski Mandriva 1 02-02-2004 05:01 AM
Mandrake 9.2 hangs at "searching for module dependencies" right after install dvishloff Mandriva 1 01-25-2004 12:49 PM
Installation hangs at "Finding Module Dependencies" on several distros patpawlowski Linux - Newbie 1 01-25-2004 10:25 AM
A7N266-VM Motherboard; Hang at "Checking Module Dependencies" if USB Device Connected jfxberns Linux - General 2 04-19-2003 11:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration