PDA

View Full Version : SpamAssassin Red Hat 9



existenz
10-18-2003, 08:54 PM
Can someone tell me is SpamAssassin works in RH 9? I would like to set it up on by box and ran the script from DirectAdmin dir spam.sh and gave me this error.

Warning: prerequisite HTML::Parser 3 not found.

Warning: I could not locate your pod2man program. Please make sure,
your pod2man program is in your PATH before you execute 'make'

Writing Makefile for Mail::SpamAssassin
Makefile:92: *** missing separator. Stop.
Makefile:92: *** missing separator. Stop.


Any ideas?

chuckd
10-18-2003, 11:20 PM
Is HTML::Parser installed? That was the first thing complained about by the script so that's the best place to start. RH9 has an HTML::Parser RPM, so you can install that. Or install it with CPAN:

# perl -MCPAN -e 'install HTML::Parser'

pod2man should be included in the perl package.

Also have you installed the latest Perl errata from Red Hat? There were problems with the new Unicode support I believe, these could be biting you.

existenz
10-19-2003, 12:02 AM
I just ran up2date today and that may have screwed me. I thought that I should be doing ok but I was not sure. I have the following version of perl installed:

This is perl, v5.8.0 built for i386-linux-thread-multi
(with 1 registered patch, see perl -V for more detail)

chuckd
10-19-2003, 12:17 AM
You should be fine with Perl if you've run up2date. Need to look at the other things - i.e. make sure HTML::Parser is installed and work out why pod2man isn't working.

existenz
10-19-2003, 01:01 AM
As if things are not getting worse...the CPAN shell is not working. I am looking for documentation on how to fix but any suggestions would help...

When you envoke the CPAN shell this is what I get

"Can't locate CPAN.pm in @INC"


I assume RH's up2date broke the path.

pod2man is a another issue...

chuckd
10-19-2003, 01:12 AM
I don't think the RH update has too much to do with it - it was only a minor update. Sounds like you've got the Perl install stuffed up somehow. Hard to recommend anything in general.

DirectAdmin Support
10-19-2003, 02:47 PM
Hello,

what does

locate pod2manreturn? If you've already got it, you'd just need to add the path to your environmental varibles, else you need to get pod2man :)

John

existenz
10-19-2003, 05:38 PM
I did a whereis last night and found I have it...

pod2man: /usr/bin/pod2man /usr/share/man/man1/pod2man.1.gz

I am not sure how to correct this or add the HTML::Parser. I downloaded the rpm but the following dependecies were needed:

perl(HTML::Tagset) is needed by perl-HTML-Parser-3.31-1
perl-base >= 0:5.004 is needed by perl-HTML-Parser-3.31-1
perl-HTML-Tagset is needed by perl-HTML-Parser-3.31-1
perl-base is needed by perl-HTML-Parser-3.31-1

So I was thinking it would be better to fix and use CPAN to download HTML::Parser so I get all the dependecies at once?

arch this is fustrating...sometimes I hate Red Hat when I use BSD all day it feels like the difference between Windows and MacOS :D

chuckd
10-19-2003, 05:53 PM
Well you need to get the other RPMs it says to get... It's not too complex...

existenz
10-19-2003, 06:16 PM
Yes but that does not solve the problem that is more of a bandage than a solution. I could sit here and download all the rpm's but then the next time I need to use CPAN I am still screwed.

I was thinking of installing tring to reinstall perl fixing it so that I can use the CPAN shell to get it to download for me?

existenz
10-19-2003, 10:20 PM
chuckd,

I just wanted to give you a update. Perl was hosed, I removed the old version 5.8.0 from the update. I then downloaded 5.8.1 the source and compiled it and that fixed all the problems, CPAN shell works again, pod2man is fixed. This stuff worked prior to the update so either have one messed up box or something is up with that update.

Thanks for your help!!

chuckd
10-20-2003, 03:33 AM
Mm strange maybe the RPM install failed halfway through or something. Good to hear it's back to normal.

khron
10-27-2003, 01:23 PM
Writing Makefile for Mail::SpamAssassin
Makefile:92: *** missing separator. Stop.
Makefile:92: *** missing separator. Stop.

these errors can be removed by doing:

export LANG=C
before running perl -e shell -MCPAN or he spam.sh script

mmerlin
11-28-2004, 09:36 PM
Originally posted by existenz I just wanted to give you a update. Perl was hosed, I removed the old version 5.8.0 from the update. I then downloaded 5.8.1 the source and compiled it and that fixed all the problems[/B]
I had the had the same problem with 5.8.0 but fixed it (http://www.directadmin.com/forum/showthread.php?s=&threadid=4995&postid=35133#post35133) by editing

/etc/sysconfig/i18n

and changing one line

from
LANG="en_US.UTF-8"

to
LANG="en_US"

make sure to totally log off the server (disconnect your SSH session) and log in again for the change to take effect

resolveit
12-01-2004, 02:53 AM
I am having a problem with this...

I tried runnng ./spam.sh in the /usr/local/directadmin/scripts directory. It gave me a warning that HTML::Parser 3.24 was not found.

I tried the


# perl -MCPAN -e 'install HTML::Parser'


it gave me an error "Can't locate CPAN.pm in @INC"

I upgraded perl to version 5.8.5 (compiled from source) as suggested in this thread.

Then # perl -MCPAN -e 'install HTML::Parser' worked. However I still get the warning. I tried the # perl -MCPAN -e 'install HTML::Parser' again and it said that the Parser was up to date.

Where to go to next? Any suggestions?

Regards,
Onno

nobaloney
12-01-2004, 10:08 AM
Try installing CPAN.pm.

Jeff