Operating System - Linux
1830354 Members
2222 Online
110001 Solutions
New Discussion

SpamAssassin missing perl script

 
SOLVED
Go to solution
Vernon Brown_4
Trusted Contributor

SpamAssassin missing perl script

I make and make install SpamAssassin from a downloaded tar file. Make and install go without complaint but when I try to run it I get:

Command line:

[root@linda Mail-SpamAssassin-2.63]# spamassassin -t test

First of many errors:


Can't locate HTML/Parser.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl) at /usr/lib/perl5/site_perl/5.6.0/Mail/SpamAssassin/HTML.pm line 7.


Here is line 7 in HTML.pm:

use HTML::Parser 3.24 ();

There is a Parser.pm in /usr/lib/perl5/5.6.0/Pod/Parser.pm

Can anyone guess if that is the Parser.pm that the HTML.pm is trying to include. The path does not seem to be in the paths listed in the error message. Possible fix ??

Any ideas ?


[root@linda Pod]# ls -l Parser.pm
-r--r--r-- 1 root root 63331 Mar 23 2001 Parser.pm
[root@linda Pod]# pwd
/usr/lib/perl5/5.6.0/Pod
6 REPLIES 6
Steven E. Protter
Exalted Contributor
Solution

Re: SpamAssassin missing perl script

Vernon,

Do understand that spam asssassin won't stop the sendmail exploits you were experiencing.

All its missing is the Perl 5.6 release.

Here's a link to the rpm

I forget which redhat you're running.

http://www.redhat.com/swr/i386/perl-5.8.0-88.3.i386_dl.html
http://www.redhat.com/swr/noarch/perl-libwww-perl-5.65-6.noarch_dl.html

My search
http://www.redhat.com/apps/download/results.html?search%3Aquery_cb=Perl&search%3Asource=rpm&search%3Afields=name&search%3Afields=summary&search%3Afields=description&search%3Aoptions=match_partial&search%3Afield%3Aarch=i386%2Ci586%2Ci686%2Cnoarch&search%3Ago=Search

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Vernon Brown_4
Trusted Contributor

Re: SpamAssassin missing perl script

Thanks Steven; I see now after reading the doc's that SpamAssassin does too much of what I don't need and not enough of what I do need.

I'm still working with your scripts; tayloring them for my environment and have just about closed all the loopholes that were being exploited.

I'll keep working on SpamAssassin until I get it running just for the experience but probably won't install it as a running daemon.
Martin P.J. Zinser
Honored Contributor

Re: SpamAssassin missing perl script

Hello Vernon,

while I do agree with SEP that in your particular case just upgrading the whole she-bang is the way to go (5.6.0 is way old), if you are at a recent version missing modules can be easily located using http://search.cpan.org/

Just enter the module name (HTML::Parser in your case) and it will give you a list with the packages for download. (In this particular case the first hit is the one you want).

Greetings, Martin
Vernon Brown_4
Trusted Contributor

Re: SpamAssassin missing perl script

Thanks Martin; I'll try updating the parser first. I have downloaded the latest Perl 5.8.x but am little afraid to install it on my old server running RedHat 7.1. Some of my old scripts might break.

I have SuSE 9 Linux running on my development box that will soon replace the RedHat 7.1.

Vern
Martin P.J. Zinser
Honored Contributor

Re: SpamAssassin missing perl script

Hello Vernon,

it is certainly a good idea to first try this on a new, non-production system, before wrecking Havoc on a server you need.

Having said this, my own experience with Perl upgrades has been pretty good. Code that used to work in version X tends to work in version X+1 too. The only area I ever experienced problems with is add-on modules to PerlTK.

Just a heads-up that once you copy your scripts from the old to the new server you hopefully will not run into any serious problems.

All the best, Martin
Vernon Brown_4
Trusted Contributor

Re: SpamAssassin missing perl script

I finally got SpamAssassin running. Turned out that the missing HTML::Parser.pm was not in even the latest perl 5.8.0 that I did install.

I downloaded and installed three packages responding to compaints from the test part of the SpamAssassin USAGE instructions. HTML::Parser.pm had two includes that were also needed.

All going fine now; thanks guys !!

Vern