You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Hjerto <hj...@gmail.com> on 2005/11/19 23:36:36 UTC
"Razor2 is not available", but it really is!
Hello,
This is really strange. I have Razor installed and working, but SA
insists that it isn't there (spamassasin -tD):
(crop)
[402] dbg: plugin: loading Mail::SpamAssassin::Plugin::Razor2 from @INC
[402] dbg: razor2: razor2 is not available
[402] dbg: plugin: registered
Mail::SpamAssassin::Plugin::Razor2=HASH(0x8d0a354)
(crop)
But I have Razor, in the search path and all:
hjerto@maxus:~$ razor-check --v
Razor Agents 2.77, protocol version 3
hjerto@maxus:~/etc/mail/spamassassin$ which razor-check
/home/hjerto/bin/razor-check
And the plugin:
hjerto@maxus:~$ perl -e 'require Mail::SpamAssassin::Plugin::Razor2'
hjerto@maxus:~$
(I.e.: No error message is good news.)
I'm not root, so it's a single user install. Followed the great guide at
http://wiki.apache.org/spamassassin/SingleUserUnixInstall
I also activate it in v310.pre:
hjerto@maxus:~/etc/mail/spamassassin$ grep -v ^# v310.pre
loadplugin Mail::SpamAssassin::Plugin::DCC
loadplugin Mail::SpamAssassin::Plugin::Pyzor
loadplugin Mail::SpamAssassin::Plugin::Razor2
loadplugin Mail::SpamAssassin::Plugin::SpamCop
loadplugin Mail::SpamAssassin::Plugin::AWL
loadplugin Mail::SpamAssassin::Plugin::AutoLearnThreshold
loadplugin Mail::SpamAssassin::Plugin::WhiteListSubject
loadplugin Mail::SpamAssassin::Plugin::MIMEHeader
loadplugin Mail::SpamAssassin::Plugin::ReplaceTags
Running SA version 3.1.0 on Perl 5.8.4.
Can anybody help me? I'm _so_ close to getting this thing up and running.
Thanks in advance!
Re: "Razor2 is not available", but it really is!
Posted by Hjerto <hj...@gmail.com>.
On 11/19/05, Theo Van Dinter <fe...@apache.org> wrote:
> On Sat, Nov 19, 2005 at 11:36:36PM +0100, Hjerto wrote:
> > This is really strange. I have Razor installed and working, but SA
> > insists that it isn't there (spamassasin -tD):
> >
> > (crop)
> > [402] dbg: plugin: loading Mail::SpamAssassin::Plugin::Razor2 from @INC
> > [402] dbg: razor2: razor2 is not available
> > [402] dbg: plugin: registered
> > Mail::SpamAssassin::Plugin::Razor2=HASH(0x8d0a354)
> > (crop)
>
> Ok, it can't find the perl modules.
>
> > But I have Razor, in the search path and all:
> > hjerto@maxus:~$ razor-check --v
> > Razor Agents 2.77, protocol version 3
> > hjerto@maxus:~/etc/mail/spamassassin$ which razor-check
> > /home/hjerto/bin/razor-check
>
> So it looks like you installed the modules in your home directory, which
> probably won't be in @INC, so the plugin can't find them. If this is the
> case, you'll probably have to set PERL5LIB before running SA so that it'll be
> able to find the non-standard module location.
>
Thanks for you feedback, Theo!
I have set PERL5LIB and I beleive that I can verify that it is set
correctly. When I remove, and then add, the custom PERL5LIB export
command, I get:
hjerto@maxus:~$ perl -e 'require Mail::SpamAssassin::Plugin::Razor2'
Can't locate Mail/SpamAssassin/Plugin/Razor2.pm in @INC (@INC
contains: /etc/perl /usr/local/lib/perl/5.8.4
/usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5
/usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at
-e line 1.
hjerto@maxus:~$ export
PERL5LIB=$HOME/lib/perl5/:$HOME/lib/perl/5.8.4/:$HOME/share/perl/5.8.4/:$PERL5LIB
hjerto@maxus:~$ perl -e 'require Mail::SpamAssassin::Plugin::Razor2'
[i.e. there is no error message here]
hjerto@maxus:~$
Which, from what I undertand, means that Perl can find
Mail::SpamAssassin::Plugin::Razor2. Do you have any other ideas? It is
probably just a silly litle thing I haven't done - It's always like
that.
Re: "Razor2 is not available", but it really is!
Posted by Theo Van Dinter <fe...@apache.org>.
On Sat, Nov 19, 2005 at 11:36:36PM +0100, Hjerto wrote:
> This is really strange. I have Razor installed and working, but SA
> insists that it isn't there (spamassasin -tD):
>
> (crop)
> [402] dbg: plugin: loading Mail::SpamAssassin::Plugin::Razor2 from @INC
> [402] dbg: razor2: razor2 is not available
> [402] dbg: plugin: registered
> Mail::SpamAssassin::Plugin::Razor2=HASH(0x8d0a354)
> (crop)
Ok, it can't find the perl modules.
> But I have Razor, in the search path and all:
> hjerto@maxus:~$ razor-check --v
> Razor Agents 2.77, protocol version 3
> hjerto@maxus:~/etc/mail/spamassassin$ which razor-check
> /home/hjerto/bin/razor-check
So it looks like you installed the modules in your home directory, which
probably won't be in @INC, so the plugin can't find them. If this is the
case, you'll probably have to set PERL5LIB before running SA so that it'll be
able to find the non-standard module location.
--
Randomly Generated Tagline:
"Oh mother, I've got a present for you. It's in my diaper and it's not a
toaster." - Stewie on Family Guy