Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jan 2006 07:24:15 -0500
From:      Ken Stevenson <ken@transpack.com>
To:        freebsd-questions@freebsd.org
Cc:        David Banning <david+dated+1138777227.5c56ea@skytracker.ca>, questions@freebsd.org
Subject:   Re: spamassassin problem and question
Message-ID:  <200601270724.15499.ken@transpack.com>
In-Reply-To: <20060127070026.GA70965@skytracker.ca>
References:  <20060127070026.GA70965@skytracker.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
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. 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601270724.15499.ken>