After perl upgrade: "Can't locate XML/ in @INC"

Matthew Seaman matthew at
Tue Nov 8 15:49:28 UTC 2016

On 2016/11/08 15:27, Niklaas Baudet von Gersdorff via freebsd-questions
>   $ 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?

You seem to have two different version of perl installed simultaneously.
 Also, after the switch to 5.24 as the default version, your perl
package should be named perl5-5.24.1.r4

What version does ```perl -v``` return with?  If it's perl-5.20 then,
correct, there is no XML::Parser available, as that has been installed
in a perl-5.24 specific subdirectory of ${PERL5LIB}

If it's perl-5.24 that you want I suggest:

  # pkg delete -f perl5-5.20.3_15 perl5.24-5.24.1.r4
  # pkg install perl5

Assuming you're using the latest pre-compiled packages (and not the ones
from the quarterly branch which still have 5.20 as the default version.)
 Or build and install a new perl-5.24 package.  It's important to
re-install perl 5.24 as removing perl5-5.20 may have removed some
important files from the existing 5.24 package.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 972 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the freebsd-questions mailing list