LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 12-30-2016, 09:44 AM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Rep: Reputation: 177Reputation: 177
Struggling to install spamassassin


I've spent two days trying to install spamassassin on Slackware64 14.1. I managed to do this on two machines a couple of years ago, but having trouble now.

I first download spamassassin from the SlackBuilds repo (46 interdependent modules!). It built and installed, but I got an error trying to run sa-update. I didn't make a note of that error, but I believe it was pretty much the same as the error I got in my next attempt.

Next, I uninstalled all the SlackBuilds spamassassin packages and downloaded and installed Mail-SpamAssassin-3.4.1 from spamassassin.apache.org. Running sa-update gives me the same error:

Code:
> sa-update
Insecure dependency in require while running with -T switch at /usr/share/perl5/vendor_perl/Net/DNS/Resolver/Base.pm line 570.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/Net/DNS/Resolver/Base.pm line 570.
Compilation failed in require at (eval 20) line 2.
        ...propagated at /usr/share/perl5/base.pm line 84.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/Net/DNS/Resolver/UNIX.pm line 18.
Compilation failed in require at (eval 19) line 2.
        ...propagated at /usr/share/perl5/base.pm line 84.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/Net/DNS/Resolver.pm line 22.
Compilation failed in require at /usr/share/perl5/vendor_perl/Net/DNS.pm line 51.
Compilation failed in require at /usr/local/bin/sa-update line 87.
BEGIN failed--compilation aborted at /usr/local/bin/sa-update line 87.
This is pretty much gibberish to me. Can anyone help me out? There were no required dependency failures in my build.

Last edited by mfoley; 12-30-2016 at 09:45 AM.
 
Old 12-30-2016, 04:55 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
> sa-update
Insecure dependency in require while running with -T switch at /usr/share/perl5/vendor_perl/Net/DNS/Resolver/Base.pm line 570.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/Net/DNS/Resolver/Base.pm line 570.
Compilation failed in require at (eval 20) line 2.
<snip>
Most likely you need a more recent version of the Net:NS perl module.
Try 1.06 (after uninstalling 1.02 that comes with 14.1) and see if it helps

Regards
 
Old 01-01-2017, 11:30 PM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Unfortunately, my Net:NS version is 1.06. Other ideas?
 
Old 01-02-2017, 02:41 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by mfoley View Post
Unfortunately, my Net:NS version is 1.06. Other ideas?
You may try the 1.05 version. See this post

In fact, when I installed spamassassin twice on Slackware (12.2 and 14.2) by compiling the sources from apache.org (as you did), I installed the necessary perl modules using cpan. The Net:NS module at that time was 1.05, and everything works without a hitch.
 
1 members found this post helpful.
Old 01-02-2017, 08:31 PM   #5
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Thanks for the help. I tried using CPAN (I think). The spamassassin INSTALL file gave the instructions:
Code:
Using CPAN via CPAN.pm:

        perl -MCPAN -e shell                    [as root]
        o conf prerequisites_policy ask
        install Mail::SpamAssassin
        quit
When I ran that I got:
Code:
$ perl -MCPAN -e shell
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v2.14)
Enter 'h' for help.

cpan[1]> o conf prerequisites_policy ask
    prerequisites_policy [ask]
Please use 'o conf commit' to make the config permanent!


cpan[2]> o conf commit
commit: wrote '/root/.cpan/CPAN/MyConfig.pm'

cpan[3]> install Mail::SpamAssassin
:
:
REQUIRED module missing: Net::DNS
REQUIRED module missing: NetAddr::IP
optional module missing: Razor2
Apparently, that `install` did not find these dependencies. So, I then did:
Code:
cpan[5]> install Net::DNS
:
cpan[6]> install NetAddr::IP
:
cpan[7]> install Razor2
Warning: Cannot install Razor2, don't know what it is.
Try the command

    i /Razor2/

to find objects with matching identifiers.
The install of Net:NS and NetAddr::IP worked just find and it found dependencies in those modules that I said to go ahead and install. Razor2 is optional, but I did have that installed on my other systems, so I tried installing it too. When I ran `i /Razor2/` I got a list of 22 items. Not sure if I should install them all or what, so I decided to forget about Razor2 for now and then went on to trying Mail::SpamAssassin again:
Code:
cpan[8]> install Mail::SpamAssassin
Running install for module 'Mail::SpamAssassin'
  KMCGRAIL/SpamAssassin/Mail-SpamAssassin-3.4.1.tar.gz
  Has already been unwrapped into directory /root/.cpan/build/Mail-SpamAssassin-3.4.1-0
  KMCGRAIL/SpamAssassin/Mail-SpamAssassin-3.4.1.tar.gz
  No 'Makefile' created
, not re-running
Stuck there. What should I do?

Last edited by mfoley; 01-02-2017 at 08:34 PM.
 
Old 01-02-2017, 08:59 PM   #6
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
This may be a bad thing to do, but I deleted the directories /root/.cpan/build/Mail-SpamAssassin-3.4.1-0/ and /root/.cpan/build/Mail-SpamAssassin-3.4.1-coyWeE/ and tried installing Mail::SpamAssassin again. That worked.

running sa-update gave the message:
Code:
Can't locate HTTP/Date.pm in @INC (you may need to install the HTTP::Date module) (@INC contains: /usr/local/share/perl5 /usr/local/lib64/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /usr/local/bin/sa-update line 88.
BEGIN failed--compilation aborted at /usr/local/bin/sa-update line 88.
So, I installed that (arggh! these missing dependencies!), then ran sa-update again. I got no error this time (but no output -- I'll have to research that). There are new files in /var/lib/spamassassin/3.004001/updates_spamassassin_org/, so I suppose it worked.

I'll do some more testing and post back.

Meanwhile ... any idea where I can get a current spamass-milter for sendmail? Not having much luck searching.
 
Old 01-03-2017, 02:34 AM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
So, I installed that (arggh! these missing dependencies!), then ran sa-update again. I got no error this time (but no output -- I'll have to research that). There are new files in /var/lib/spamassassin/3.004001/updates_spamassassin_org/, so I suppose it worked.
Sure it worked. It downloaded the new spamassassin rules. If you want to see some output you should run it in verbose mode:
Code:
sa-update -v

Quote:
Meanwhile ... any idea where I can get a current spamass-milter for sendmail? Not having much luck searching.
I don't use a milter, but you can try mimedefang. Have a look here for a howto.

Regards
 
Old 01-05-2017, 02:40 PM   #8
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
I got everything working OK. The trick was to use CPAN to install things and forget about using the ./Configure, make, make install process with the source tarballs. My "missing" Razor2 module was Mail::SpamAssassin::Plugin::Razor2, although when I searched for installed modules it was there after all.

I got the latest sendmail milter (spamass-milter) from http://savannah.nongnu.org/projects/spamass-milt. It built and installed w/o problem.

In the end, by procedure for installing spamassassin using CPAN is much simpler that the way I did it before. Too bad it doesn't *really* find all the dependencies on the 1st pass, and I think my deleting the troublesome /root/.cpan directories is a bit naughty, but still, it went together pretty quickly and simply.
 
  


Reply

Tags
install, spamassassin



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
Struggling to install Stegdetect adampski Linux - Newbie 3 01-09-2013 11:27 AM
RHEL 4 spamassassin install skuli434 Linux - Newbie 7 02-29-2012 06:58 PM
Still struggling to install a fax mpooley Linux - Hardware 15 08-17-2008 01:19 AM
new debian user struggling with ide-cd and gnome install zbrox Debian 8 07-08-2004 11:02 AM
SpamAssassin won't install ectech Linux - Software 0 03-29-2004 12:50 PM

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

All times are GMT -5. The time now is 09:58 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