Invalid perl5 version 5.42

I'm fighting a common failure when building ports about an invalid perl5 version. The box is a fresh install of FreeBSD and I'm trying to bring up a number of development tools. I keep on hitting failures in dependencies which complain about the version of perl5. Here are two examples
Code:
  ln -fs out/Release/node node; fi
===>  Staging for node20-20.19.0
===>   node20-20.19.0 depends on package: ca_root_nss>=0 - not found
===>  ca_root_nss-3.108 Invalid perl5 version 5.42.
*** Error code 1

Code:
===> accessibility/caribou
===>  License LGPL20 accepted by the user
===>   caribou-0.4.21_9 depends on file: /usr/local/sbin/pkg - found
=> caribou-0.4.21.tar.xz doesn't seem to exist in /usr/ports/distfiles/gnome.
=> Attempting to fetch https://download.gnome.org/sources/caribou/0.4/caribou-0.4.21.tar.xz
caribou-0.4.21.tar.xz                                  416 kB   11 MBps    00s
===> Fetching all distfiles required by caribou-0.4.21_9 for building
===>  Extracting for caribou-0.4.21_9
=> SHA256 Checksum OK for gnome/caribou-0.4.21.tar.xz.
===>  Patching for caribou-0.4.21_9
===>   caribou-0.4.21_9 depends on package: gettext-runtime>=0.22_1 - found
===>   caribou-0.4.21_9 depends on executable: msgfmt - found
===>   caribou-0.4.21_9 depends on package: gmake>=4.4.1 - found
===>   caribou-0.4.21_9 depends on file: /usr/local/bin/intltool-extract - not found
===>  intltool-0.51.0_2 Invalid perl5 version 5.42.
*** Error code 1

I'm using the base version of perl
Code:
root@gedge:~ # perl -v

This is perl 5, version 42, subversion 0 (v5.42.0) built for amd64-freebsd-thread-multi
(with 13 registered patches, see perl -V for more detail)

Copyright 1987-2025, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at https://www.perl.org/, the Perl Home Page.

root@gedge:~ # which perl
/usr/local/bin/perl

I note that 5.40 is in /usr/ports/lang/perl5 but I'm hesitant to just smack random things in the hope that it works. Can anyone help please?

Regards,
David
 
I've come across this problem when setting up the system via ports first. I guess I was did something like deleting the perl package with pkg and then it worked.
 
Back
Top