installing spamassassin through custombuild fails

nobaloney

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
25,333
Location
California
Trying to install spamassassin through custombuild fails with missing perl modules...

So I run:
Code:
perl -MCPAN -e shell
install Archive::Tar Digest::SHA Mail::SPF IP::Country Net::Ident IO::Socket::INET6 Compress::Zlib Mail::DKIM LWP::UserAgent HTTP::Date Encode::Detect ExtUtils::MakeMaker

CPAN runs about 25 minutes and fails with this message:
Code:
Installing /usr/local/bin/instmodsh
Appending installation info to /usr/lib/perl5/perllocal.pod
  MSCHWERN/ExtUtils-MakeMaker-6.62.tar.gz
  /usr/bin/make install  -- OK
Failed during this command:
 JMEHNLE/mail-spf/Mail-SPF-v2.8.0.tar.gz      : writemakefile NO '/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status 65280
Anyone know how to install spamassassin trhough custombuild?

Or had luck trying it any other way?

Thanks.

Jeff
 
Hi Jeff, just last week I installed SA on a new CentOS 5 machine using http://help.directadmin.com/item.php?id=36. It did not install all modules but enough to run spam.sh. Afterwards I did sa update -D and noticed the missing modules. I had to install those few modules again.
 
Or the yum command from #1 (http://help.directadmin.com/item.php?id=36) could be used to install SA dependencies.
I did finally get it installed; I installed using CPAN until it broke, then tried installing SpamAssassin again from custombuild; got a new (much smaller) list of errors, then installed those through CPAN, and it worked. I think next time I'll try installing SpamAssassin through yum. What do you think of that idea?

Is there any way to build the dependencies in with custombuild, since CentOS 6 doesn't install them?

Jeff
 
This is still a major problem. Only way that seems to work is to:

1) follow the instructions posted by smtalk above, but it will break. When it breaks try yum to install missing perl modules, but for me this doesn't work even though I've got lots of repositories installed:
Code:
atrpms                    Red Hat Enterprise Linux 6 - x86_64 - ATrpms         enabled:   1,791+148
atrpms-bleeding           Red Hat Enterprise Linux 6 - x86_64 - ATrpms bleedin disabled
atrpms-bleeding-debuginfo Red Hat Enterprise Linux 6 - x86_64 - ATrpms bleedin disabled
atrpms-bleeding-source    Red Hat Enterprise Linux 6 - x86_64 - ATrpms bleedin disabled
atrpms-debuginfo          Red Hat Enterprise Linux 6 - x86_64 - ATrpms - Debug disabled
atrpms-source             Red Hat Enterprise Linux 6 - x86_64 - ATrpms - Sourc disabled
atrpms-testing            Red Hat Enterprise Linux 6 - x86_64 - ATrpms testing disabled
atrpms-testing-debuginfo  Red Hat Enterprise Linux 6 - x86_64 - ATrpms testing disabled
atrpms-testing-source     Red Hat Enterprise Linux 6 - x86_64 - ATrpms testing disabled
base                      CentOS-6 - Base                                      enabled:   5,932+362
c6-media                  CentOS-6 - Media                                     disabled
centosplus                CentOS-6 - Plus                                      disabled
contrib                   CentOS-6 - Contrib                                   disabled
debug                     CentOS-6 - Debuginfo                                 disabled
epel                      Extra Packages for Enterprise Linux 6 - x86_64       enabled: 6,014+1,058
epel-debuginfo            Extra Packages for Enterprise Linux 6 - x86_64 - Deb disabled
epel-source               Extra Packages for Enterprise Linux 6 - x86_64 - Sou disabled
epel-testing              Extra Packages for Enterprise Linux 6 - Testing - x8 disabled
epel-testing-debuginfo    Extra Packages for Enterprise Linux 6 - Testing - x8 disabled
epel-testing-source       Extra Packages for Enterprise Linux 6 - Testing - x8 disabled
extras                    CentOS-6 - Extras                                    enabled:           4
rpmforge                  RHEL 6 - RPMforge.net - dag                          enabled: 1,990+2,248
rpmforge-extras           RHEL 6 - RPMforge.net - extras                       disabled
rpmforge-testing          RHEL 6 - RPMforge.net - testing                      disabled
updates                   CentOS-6 - Updates                                   enabled:      483+73
(from the output of yum repolist all
try to install Net::DNS (perl-Net-DNS) but it won't install via cpan; these are the errors just before it stops:
Code:
Result: FAIL
Failed 1/34 test programs. 0/1779 subtests failed.
make: *** [test_dynamic] Error 255
  OLAF/Net-DNS-0.68.tar.gz
  /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports OLAF/Net-DNS-0.68.tar.gz
Running make install
  make test had returned bad status, won't install without force
It won't install through yum either; the error message is:
Code:
No package perl-Net-DNS available
I got it installed by downloading it from

http://pkgs.repoforge.org/perl-Net-DNS/perl-Net-DNS-0.68-1.el6.rfx.x86_64.rpm

but when I tried to install it I got a dependency error from rpm; it tells me the package requires perl-Digest-HMAC-MD5. There's no such package. Eventually I tried using yum to install a package called: perl-Digest-HMAC-1.01-22.el6.noarch.rpm and then it would install.

SpamAssassin gets compiled, then, when running the spam.sh script, but it won't check SPF because of three missing modules:
Code:
perl(Error) is needed by perl-Mail-SPF-2.007-1.el6.art.noarch
perl(URI) >= 1.13 is needed by perl-Mail-SPF-2.007-1.el6.art.noarch
perl(URI::Escape) is needed by perl-Mail-SPF-2.007-1.el6.art.noarchp
After searching for at least a half-hour I realized that the perl-ERROR rpm simply doesn't exist, so we don't have SPF checking in SpamAssassin.

I beg of you, if you have a routine that just works on CentOS6 (I had problems with both 32-bit and 64-bit), from the beginning, without error, please post it here.

If not, then I hope someone will have the time to work on it, because I'd like to continue using SpamAssassin.

Thanks.

Jeff
 
Back
Top