I am trying to do a local install of spamassassin and am running into a few problems. Here are the steps that I have gone through so far and the problems that I am running into:

The system didn't have HTML::Parser version 3 (nor its dependency on Tagset).

% cd ~/src/HTML-Tagset-3.03
% perl Makefile.PL
% make PREFIX=~
% make PREFIX=~ install
% cd ~/src/HTML-Parser-3.28
% perl -I/home/mirsky/lib Makefile.PL
% make PREFIX=~
% make PREFIX=~ install

This created all of the spamassassin dependencies in the ~/lib (although in under different sub paths, which is annoying but ok)

so then I went to build spamassassin

% cd ~/src/Mail-SpamAssassin-2.55
% perl -I/home/mirsky/lib/perl5/site_perl/5.005/i386-linux -I/home/mirsky/lib PREFIX=~/src/spamgone SYSCONFDIR=~/src/spamgone
% make
% make install
% cd ~/spamgone/bin
% spamassassin
Can't locate Mail/SpamAssassin/NoMailAudit.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 .) at ./spamassassin line 144.
BEGIN failed--compilation aborted at ./spamassassin line 144.


Question 1) It seems that specifiying the "-I" option to perl when it was creating the makefile didn't carry over when it built spamassassin nor did it include its own library path in the INC line. Is there a different way to specify INC paths to the spamassassin build process?

I got around this by adding these lines to spamassassin directly (it isn't pretty, but it works):

unshift(@INC, '/home/mirsky/lib');
unshift(@INC, '/home/mirsky/lib/perl5/site_perl/5.005/i386-linux');
unshift(@INC, '/home/mirsky/src/spamgone/lib/perl5/site_perl/5.005');



% ~/src/spamgone/bin/spamassassin
this is a test
. ^D
Cannot open /usr/share/spamassassin/user_prefs.template: No such file or directory
Failed to create default user preference file /home/mirsky/.spamassassin/user_prefs
No configuration text or files found! Please check your setup.
X-Mail-Format-Warning: Bad RFC2822 header formatting in this is a test
X-Mail-Format-Warning: Bad RFC2822 header formatting in .
X-Spam-Status: No, hits=0.0 required=5.0
tests=none
version=2.55
X-Spam-Level:
X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)



Question 2) Why is it trying to look in /usr/share when I am installing a local copy of spamassassin. Is there a different variable that I need to set at well so that it defaults to ~/src/spamgone/share/spamassassin?


Thanks, in advance, for the help.

Sincerely,
Andrew

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail




-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to