Slackware - InstallationThis forum is for the discussion of installation issues with Slackware.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
> 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
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.
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
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.