From owner-freebsd-questions Thu Feb 6 5:36:41 2003 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 F021F37B4BA for ; Thu, 6 Feb 2003 05:36:35 -0800 (PST) Received: from out005.verizon.net (out005pub.verizon.net [206.46.170.143]) by mx1.FreeBSD.org (Postfix) with ESMTP id 20DC243F85 for ; Thu, 6 Feb 2003 05:36:35 -0800 (PST) (envelope-from leblanc@keyslapper.org) Received: from keyslapper.org ([68.160.158.62]) by out005.verizon.net (InterMail vM.5.01.05.20 201-253-122-126-120-20021101) with ESMTP id <20030206133634.KBUL16306.out005.verizon.net@keyslapper.org> for ; Thu, 6 Feb 2003 07:36:34 -0600 Received: from keyslapper.org (localhost [127.0.0.1]) by keyslapper.org (8.12.3/8.12.3) with ESMTP id h16DaY5T011089 for ; Thu, 6 Feb 2003 08:36:34 -0500 (EST) (envelope-from leblanc@keyslapper.org) Received: (from leblanc@localhost) by keyslapper.org (8.12.3/8.12.3/Submit) id h16DaYen011088 for freebsd-questions@FreeBSD.ORG; Thu, 6 Feb 2003 08:36:34 -0500 (EST) Date: Thu, 6 Feb 2003 08:36:34 -0500 From: Louis LeBlanc To: FreeBSD Questions Subject: Re: More SpamAssassin questions - it won't run. Message-ID: <20030206133633.GA9663@keyslapper.org> Reply-To: freebsd-questions@FreeBSD.ORG Mail-Followup-To: FreeBSD Questions References: <20030206041925.GA96790@keyslapper.org> <20030206093900.GC53194@happy-idiot-talk.infracaninophi> Mime-Version: 1.0 Content-Type: text/plain; charset=unknown-8bit Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20030206093900.GC53194@happy-idiot-talk.infracaninophi> User-Agent: Mutt/1.5.3i X-Authentication-Info: Submitted using SMTP AUTH at out005.verizon.net from [68.160.158.62] at Thu, 6 Feb 2003 07:36:33 -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 02/06/03 09:39 AM, Matthew Seaman sat at the `puter and typed: > On Wed, Feb 05, 2003 at 11:19:26PM -0500, Louis LeBlanc wrote: > > > Here's what I see in the procmail output: > > procmail: Executing "spamassassin,-a,-P" > > Can't locate object method "splitpath" via package "File::Spec" at /usr/local/bin/spamassassin line 18. > > BEGIN failed--compilation aborted at /usr/local/bin/spamassassin line 38. > > procmail: Program failure (2) of "spamassassin" > > procmail: Rescue of unfiltered data succeeded > > > > I know this is some kind of perl error, but I'm still quite a ways > > from guru status where that's concerned. I've tried a few things, but > > I can't get this working. > > You're using perl-5.005.03 as bundled with FreeBSD, and consequently > an older version of the File::Spec module. That's something that > keeps popping up in various places. > > You can tell what version of File::Spec you're using by: > > % perl -MFile::Spec -e 'print "$File::Spec::VERSION\n";' This tells me that I'm running 0.6, but pkg_info confirms that I have the 0.82 port installed. The spamassassin port does require the p5-File-Spec port, but doesn't seem to use it. > I can tell you that spamassassin works without complaint using version > 0.82 (as bundled with perl-5.6.1) or version 0.83 (as bundled with > perl-5.8.0). > > You can install the devel/p5-File-Spec port to get version 0.82 for > the bundled perl, which should sort things out for you. Somehow I don't think that's quite enough. I tried Adrian's suggestion and modified the use statement as follows: use File::Spec 0.82; But that didn't really help, now I get this: procmail: Executing "spamassassin,-a,-P" File::Spec version 0.82 required--this is only version 0.6 at /usr/local/bin/spamassassin line 6. BEGIN failed--compilation aborted at /usr/local/bin/spamassassin line 6. procmail: [10564] Thu Feb 6 08:26:02 2003 procmail: Program failure (255) of "spamassassin" procmail: Rescue of unfiltered data succeeded Next, I decided to reinstall the port, and I noticed the following: Writing /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/File/Spec/.packlist ## Differing version of File/Spec.pm found. You might like to rm /usr/libdata/perl/5.00503/File/Spec.pm ## Differing version of File/Spec/Mac.pm found. You might like to rm /usr/libdata/perl/5.00503/File/Spec/Mac.pm ## Differing version of File/Spec/OS2.pm found. You might like to rm /usr/libdata/perl/5.00503/File/Spec/OS2.pm ## Differing version of File/Spec/Unix.pm found. You might like to rm /usr/libdata/perl/5.00503/File/Spec/Unix.pm ## Differing version of File/Spec/VMS.pm found. You might like to rm /usr/libdata/perl/5.00503/File/Spec/VMS.pm ## Differing version of File/Spec/Win32.pm found. You might like to rm /usr/libdata/perl/5.00503/File/Spec/Win32.pm ## Running 'make install UNINST=1' will unlink all those files for you. Appending installation info to /usr/local/lib/perllocal.pod What's the danger of uninstalling these? Presumably most of what works with 0.6 should work with 0.82, right? Should UNINST=1 always be used? Never? If I do remove a perl module that's part of the base distribution, and something breaks, how would I go about replacing it? TIA Lou -- Louis LeBlanc leblanc@keyslapper.org Fully Funded Hobbyist, KeySlapper Extrordinaire :) http://www.keyslapper.org ԿԬ The Wright Bothers weren't the first to fly. They were just the first not to crash. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message