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)

In reply to Alien::Libxml2 - build error on RedHat by iqbal_1956

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.