spamassassin problem and question

Ken Stevenson ken at transpack.com
Fri Jan 27 04:24:37 PST 2006


On Friday 27 January 2006 02:00 am, David Banning wrote:
> While spamassassin is executing I am getting this error;
>
> Can't locate Razor2/Client/Agent.pm in @INC (@INC contains:
> /usr/local/lib/perl5/site_perl/5.8.7 ../lib
> /usr/local/lib/perl5/5.8.7/BSDPAN /usr/local/lib/perl5/site_perl/5.8.7/mach
> /usr/local/lib/perl5/site_perl/5.8.6 /usr/local/lib/perl5/site_perl/5.005
> /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.7/mach
> /usr/local/lib/perl5/5.8.7) at
> /usr/local/lib/perl5/site_perl/5.8.7/Mail/SpamAssassin/Plugin/Razor2.pm
> line 70.
>
> So I look for the file;
>
> # locate Agent.pm
> /usr/local/lib/perl5/site_perl/5.005/Sitescooper/UserAgent.pm
> /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/Razor2/Client/Agent.pm
> /usr/local/lib/perl5/site_perl/5.8.7/LWP/UserAgent.pm
>
> In my simplistic way of attempting resolution, I am thinking
> of just adding /usr/local/lib/perl5/site_perl/5.005/i386-freebsd
> to @INC - but here is where my knowledge runs out. Where are the
> references to directories referred to as @INC stored?
> @INC does not appear to be a file.
>
I believe @INC is created when perl is compiled, so you can't change it 
directly. To use a module in a directory that's not in the compiled list, you 
add the following line before the "use" statement that references Razor2:

use lib "/usr/local.../location of the perl module

> I may even be attempting to solve this incorrectly. Any pointers
> would be useful -

Having said that, I don't think that's what you want to do. It sounds like you 
upgraded Spamassassin without upgrading Razor2. I don't think Razor2 gets 
upgraded automatically when you upgrade Spamassassin because it's optional. I 
would try upgrading the Razor2 port to the latest version. 


More information about the freebsd-questions mailing list