[plug] Redhat/RPM dependency question

Anthony J. Breeds-Taurima tony at cantech.net.au
Tue Aug 21 09:57:50 WST 2001


On Mon, 20 Aug 2001, Peter Wright wrote:

>
> Hi all,
>
> Possibly a stupid or you-should-have-read-the-FM question, so I'll keep it
> (reasonably) short.
>
> Please note, nothing up my sleeve:
>
> [root at Linux_AU ~/rpms/kde]# rpm -Uhv kdevelop-2.0-1.i386.rpm
> error: failed dependencies:
>         libfam.so.0   is needed by kdevelop-2.0-1
> [root at Linux_AU ~/rpms/kde]#


Because on the build system libfam did NOT come from an rpm.  The authors
system has libfam (ie compiled from source).  The other possibility is that
the (rpm) author specified it manually in the .spec file.

> This is a Redhat 7.1/i386 system at work (I am used to Debian[0]). This sort of
> a dependency error message confuses me. Why doesn't it specify the RPM
> package it depends on instead of the specific shared library? How on earth
> am I supposed to find out what RPM provides this file?
>
> While I'd appreciate if someone can just off the top of their head tell me
> which package provides the libfam.so.0 file, I'd appreciate it even more if
> you could tell me (or drop a subtle hint to me :) what the general
> technique is for working out these sort of dependency issues.


insert disk1
mount /mnt/cdrom
cd /mnt/cdrom/RedHat/RPMS
rpm -qp --filesbypkg > /tmp/Contents-i386 #:)
cd /tmp
umount /mnt/cdrom
insert disk2
mount /mnt/cdrom
cd /mnt/cdrom/RedHat/RPMS
rpm -qp --filesbypkg >> /tmp/Contents-i386 #:)
cd /tmp
umount /mnt/cdrom
gzip Contents-i386


Then in future all you need to do is:
zgrep libfam /tmp/Contents-i386.gz


Hmmm does that sound familier.


If it's not in an rpm then I generally grab the source build an RPM and then
install it.


You could also try rpmfind.net and see how that goes.

Yours Tony.

/*
 * "The significant problems we face cannot be solved at the
 * same level of thinking we were at when we created them."
 * --Albert Einstein
 */




More information about the plug mailing list