I'm trying to build Alien::Libxml2 (as a prerequisite to XML::LibXML) on a Linux RedHat system. The package has been downloaded from metacpan but fails on the initial build with the below error. All the mentioned modules have been rebuilt with the latest from metacpan but it makes no difference. Looks like a standard incompatibility between something. Help from the community gratefully received.
/nfs/home/breezes/RedHat_Build/Alien-Libxml2-0.17: perl Makefile.PL
Attempt to reload Scalar/Util.pm aborted.
Compilation failed in require at /nfs/home/breezes/RedHat_Build/perlli
+b/blib/lib/File/Temp.pm line 153.
BEGIN failed--compilation aborted at /nfs/home/breezes/RedHat_Build/pe
+rllib/blib/lib/File/Temp.pm line 153.
Compilation failed in require at /nfs/home/breezes/RedHat_Build/perlli
+b/blib/lib/Alien/Build.pm line 1128.
BEGIN failed--compilation aborted at /nfs/home/breezes/RedHat_Build/pe
+rllib/blib/lib/Alien/Build.pm line 1128.
Compilation failed in require at /nfs/home/breezes/RedHat_Build/perlli
+b/blib/lib/Alien/Build/MM.pm line 5.
BEGIN failed--compilation aborted at /nfs/home/breezes/RedHat_Build/pe
+rllib/blib/lib/Alien/Build/MM.pm line 5.
Compilation failed in require at Makefile.PL line 61.
BEGIN failed--compilation aborted at Makefile.PL line 61.
/nfs/home/breezes/RedHat_Build/Alien-Libxml2-0.17:
/nfs/home/breezes/RedHat_Build/Alien-Libxml2-0.17: uname -a
Linux rcladx0.unix.xxxyyy.com 3.10.0-1160.21.1.el7.x86_64 #1 SMP Mon F
+eb 22 18:03:13 EST 2021 x86_64 x86_64 x86_64 GNU/Linux
/nfs/home/breezes/RedHat_Build/Alien-Libxml2-0.17: perl --version
This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-li
+nux-thread-multi
(with 44 registered patches, see perl -V for more detail)