nink has asked for the wisdom of the Perl Monks concerning the following question:

I have been tearing my hair out over this.

I have Fedora Core 1, running on a old Celeron with 256Mb of RAM.

I have tried installing spamassassin-tools both from src.rpm to no avail.

I have succeeded in installing perl-Mail-Spamassassin and spamassassin (version 2.63-1)

BUT when I try to install spamassassin-tools (v 2.63-1) I get a dependency failure on perl(Digest::SHA1).

But Digest::SHA1 *is* installed. "cpan install Digest::SHA1" states that this module is up to date.

slocate -i Digest | grep perl | grep SHA1 reveals "Digest/SHA1" in at least three places of the perl module dir "vendor_perl", "site_perl" and I think even at the perl5/5.8.1 dir level.

So what can I do. Is rpm not finding it. Is there some kind of environment var I need. Maybe a path issue, I am not sure. But it is bugging the hell out of me. The Spamassassin INSTALL file states that Digest::SHA1 is nice but not a requirement, UNFORTUNATELY there are OTHER programs I am attempting to install that NEED "spamassassin-tools".

Is there a way via cpan to *maybe* uninstall the Digest::SHA1 and reinstall it??? I am not in the mood to uninstall perl.

Any and all help is greatly appreciated.

Replies are listed 'Best First'.
Re: Digest::SHA1 and spamassassin-tools-2.63
by florg (Friar) on Mar 10, 2004 at 20:57 UTC

    Where do you get the message that Digest::SHA1 is missing? When you try to install Spamassin through RPM or when you try to compile it?

    What RPM (or any package manager) thinks is installed on the system and what actually is installed does not have to match. A package manager only knows its database.

    I guess the easiest way to resolve this conflict (if RPM is missing this package) is to install Digest::SHA1 through the package manager. Another option is to just force the install.

    florg

Re: Digest::SHA1 and spamassassin-tools-2.63
by iburrell (Chaplain) on Mar 11, 2004 at 00:51 UTC
    If you are installing from RPM, then you need to satisfy RPM that the dependency is installed. Installing modules through CPAN does not help because RPM does not know about them. Is the perl-Digest-SHA1 package installed? perl-Digest-SHA1-2.07-3 is included in Fedora Core 1 so install that.

    yum helps a lot with installing packages and dependencies. yum depends "perl(Digest::SHA1)" will show what package provides that dependency. And yum install perl-Digest-SHA1 will fetch and install the package. Also, if you use a third-party repository with the packages you need then yum install spamassassin-tools will do it. dag.weers.com has spamassassin-tools-2.63-0.

      You are a god send iburrell. I just used yum. Nice tool. Seems a tad better than apt-get on Fedora.
      Thank you thank you.
Re: Digest::SHA1 and spamassassin-tools-2.63
by waswas-fng (Curate) on Mar 10, 2004 at 20:52 UTC
    make sure: which perl and the shabang line on the spamassassin scripts match locations -- maybe you have two or more perl installs that are set up to use different directories...


    -Waswas