After perl upgrade: "Can't locate XML/Parser.pm in @INC"
Frank Shute
frank at woodcruft.co.uk
Tue Nov 8 15:38:08 UTC 2016
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/
More information about the freebsd-questions
mailing list