From owner-freebsd-questions@FreeBSD.ORG Fri Jan 27 12:24:37 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B03616A423; Fri, 27 Jan 2006 12:24:37 +0000 (GMT) (envelope-from ken@transpack.com) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.152]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9957243D53; Fri, 27 Jan 2006 12:24:36 +0000 (GMT) (envelope-from ken@transpack.com) Received: from bserver.transpack.com ([68.80.195.248]) by comcast.net (rwcrmhc12) with ESMTP id <20060127122430m12003cd9re>; Fri, 27 Jan 2006 12:24:35 +0000 Received: from localhost (localhost.transpack.com [127.0.0.1]) by bserver.transpack.com (Postfix) with ESMTP id 0495BB822; Fri, 27 Jan 2006 07:24:30 -0500 (EST) Received: from bserver.transpack.com ([127.0.0.1]) by localhost (bserver.transpack.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19661-01; Fri, 27 Jan 2006 07:24:25 -0500 (EST) Received: from kbuilt.transpack.com (kbuilt.transpack.com [192.168.214.102]) by bserver.transpack.com (Postfix) with ESMTP id BDFE5B81F; Fri, 27 Jan 2006 07:24:24 -0500 (EST) From: Ken Stevenson To: freebsd-questions@freebsd.org Date: Fri, 27 Jan 2006 07:24:15 -0500 User-Agent: KMail/1.6 References: <20060127070026.GA70965@skytracker.ca> In-Reply-To: <20060127070026.GA70965@skytracker.ca> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200601270724.15499.ken@transpack.com> X-Virus-Scanned: amavisd-new at transpack.com Cc: David Banning , questions@freebsd.org Subject: Re: spamassassin problem and question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jan 2006 12:24:37 -0000 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.