PDA

View Full Version : Perl: Failed dependencies



mdwoolley
2007-11-21, 02:26
Whilst setting up slim server on Fedora, I got:

[root@fluffy martin]# rpm -i /tmp/SlimServer_v6.5.4.noarch.rpm
error: Failed dependencies:
perl-XML-Parser is needed by slimserver-6.5.4-1.noarch
perl-Digest-SHA1 is needed by slimserver-6.5.4-1.noarch

which was odd because cpan confirms both modules are up to date:

cpan[2]> install XML::Parser
XML::Parser is up to date (2.36).
cpan[3]> install Digest::SHA1
Digest::SHA1 is up to date (2.11).

cpan[4]> q
Lockfile removed.


So, just to help others in the future, I simply ran the rpm command with --nodeps. It ran to completion and so far, slimserver seems fine. It's streaming internet radio OK and I'm currently scanning my library.

Hope the above is of use to others.

Robin Bowes
2007-11-21, 02:57
mdwoolley wrote:
> Whilst setting up slim server on Fedora, I got:
>
> [root@fluffy martin]# rpm -i /tmp/SlimServer_v6.5.4.noarch.rpm
> error: Failed dependencies:
> perl-XML-Parser is needed by slimserver-6.5.4-1.noarch
> perl-Digest-SHA1 is needed by slimserver-6.5.4-1.noarch
>
> which was odd because cpan confirms both modules are up to date:
>
> cpan[2]> install XML::Parser
> XML::Parser is up to date (2.36).
>
> cpan[3]> install Digest::SHA1
> Digest::SHA1 is up to date (2.11).
>
>
> cpan[4]> q
> Lockfile removed.

RPM dependencies are different to having the software installed.

i.e. installing via CPAN will not resolve the failed dependencies (as
you noticed).

Installing with --nodeps will work, but a better solution (speaking
about RPM-based systems in general) is to install the missing packages,
e.g.:

# yum install perl-XML-Parser perl-Digest-SHA1

R.