From owner-freebsd-questions@freebsd.org Tue Nov 8 15:38:08 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4A8DCC365C8 for ; Tue, 8 Nov 2016 15:38:08 +0000 (UTC) (envelope-from frank@woodcruft.co.uk) Received: from b.painless.aa.net.uk (b.painless.aa.net.uk [81.187.30.52]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1701990B for ; Tue, 8 Nov 2016 15:38:08 +0000 (UTC) (envelope-from frank@woodcruft.co.uk) Received: from woodcruft.co.uk ([81.187.49.114] helo=lime.woodcruft.co.uk) by b.painless.aa.net.uk with esmtp (Exim 4.77) (envelope-from ) id 1c48TM-0001nh-Ep for freebsd-questions@freebsd.org; Tue, 08 Nov 2016 15:38:06 +0000 Received: by lime.woodcruft.co.uk (Postfix, from userid 1001) id C1D252F8B7; Tue, 8 Nov 2016 15:37:55 +0000 (GMT) Date: Tue, 8 Nov 2016 15:37:55 +0000 From: Frank Shute To: freebsd-questions@freebsd.org Subject: Re: After perl upgrade: "Can't locate XML/Parser.pm in @INC" Message-ID: <20161108153755.GA8641@lime.woodcruft.co.uk> Reply-To: Frank Shute Mail-Followup-To: freebsd-questions@freebsd.org References: <20161108152744.uqbrbhfbkctd5n7l@box-hlm-03.niklaas.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161108152744.uqbrbhfbkctd5n7l@box-hlm-03.niklaas.eu> X-Face: *}~{PHnDTzvXPe'wl_-f%!@+r5; VLhb':*DsX%wEOPg\fDrXWQJf|2\,92"DdS%63t*BHDyQ|OWo@Gfjcd72eaN!4%NE{0]p)ihQ1MyFNtWL X-Operating-System: FreeBSD 11.0-PRERELEASE amd64 X-Organisation: 'woodcruft.co.uk' User-Agent: Mutt/1.7.1 (2016-10-04) X-Painless-Spam-Score: 1.9 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Nov 2016 15:38:08 -0000 On Tue, Nov 08, 2016 at 04:27:44PM +0100, Niklaas Baudet von Gersdorff via freebsd-questions wrote: > > I upgraded perl and afterwards I got > > Can't locate XML/Parser.pm in @INC > > when executing some munin plugin: > > Can't locate XML/Parser.pm in @INC (you may need to install the > XML::Parser module) (@INC contains: > /usr/local/lib/perl5/site_perl/mach/5.20 > /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.20/mach > /usr/local/lib/perl5/5.20 /usr/local/lib/perl5/site_perl/5.20 > /usr/local/lib/perl5/site_perl/5.20/mach .) at > /usr/local/etc/munin/plugins/varnish4_bad line 99. > > But it's there: > > $ pkg info | grep ^p5- | grep -i parser > > p5-HTML-Parser-3.72 Perl5 module for parsing HTML documents > p5-TimeDate-2.30_2,1 Perl5 module containing a better/faster date parser for absolute dates > p5-XML-Parser-2.44 Perl extension interface to James Clark's XML parser, expat > > $ find /usr/local/lib/perl5/ -iname parser > > /usr/local/lib/perl5/5.20/TAP/Parser > /usr/local/lib/perl5/site_perl/mach/5.20/auto/HTML/Parser > /usr/local/lib/perl5/site_perl/mach/5.24/auto/XML/Parser > /usr/local/lib/perl5/site_perl/mach/5.24/XML/Parser > /usr/local/lib/perl5/5.24/TAP/Parser > > $ pkg info | grep ^perl > > perl5-5.20.3_15 Practical Extraction and Report Language > perl5.24-5.24.1.r4 Practical Extraction and Report Language > > Did I miss something when upgrading perl? > > Niklaas Hi Niklaas, I'm guessing you probably didn't see the instructions in /usr/ports/UPDATING about upgrading perl to 5.24 so you've ended up with 2 versions of Parser and 2 versions of perl. I think if you follow the instructions in UPDATING you should be good to go. Regards, -- Frank https://woodcruft.co.uk/