G'day All and Happy New Year,

Background: I'm running Cygwin on Win10; Perl (5.32.0) is running on Cygwin using Perlbrew. I've just run a full update of Cygwin: no problems running; required some minor tweaks (e.g. copying a file from 'vim81' to 'vim82') but everything seems to be generally fine. The previous version of Cygwin was 3.0.7; the new version just installed is 3.1.6. I was looking at some Perl modules I had installed, thinking to maybe update them to take advantage of newer library versions; this is where I hit the problem with XML::LibXML.

I currently have:

$ perl -E 'use XML::LibXML; say $XML::LibXML::VERSION' 2.0205

The latest version is 2.0206, so I attempted to update:

cpan[1]> install XML::LibXML Reading '/home/ken/.cpan/Metadata' Database was generated on Fri, 01 Jan 2021 04:29:02 GMT Running install for module 'XML::LibXML' Fetching with LWP: http://www.cpan.org/authors/id/S/SH/SHLOMIF/XML-LibXML-2.0206.tar.gz Fetching with LWP: http://www.cpan.org/authors/id/S/SH/SHLOMIF/CHECKSUMS Checksum for /home/ken/.cpan/sources/authors/id/S/SH/SHLOMIF/XML-LibXM +L-2.0206.tar.gz ok Scanning cache /home/ken/.cpan/build for sizes ...................................................................... +......DONE Configuring S/SH/SHLOMIF/XML-LibXML-2.0206.tar.gz with Makefile.PL Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for XML::LibXML Writing MYMETA.yml and MYMETA.json SHLOMIF/XML-LibXML-2.0206.tar.gz /home/ken/perl5/perlbrew/perls/perl-5.32.0/bin/perl Makefile.PL -- O +K Running make for S/SH/SHLOMIF/XML-LibXML-2.0206.tar.gz cp lib/XML/LibXML/DocumentFragment.pod blib/lib/XML/LibXML/DocumentFra +gment.pod ... almost a screenful of successful 'cp' comands, then: cp lib/XML/LibXML/Dtd.pod blib/lib/XML/LibXML/Dtd.pod Running Mkbootstrap for LibXML () chmod 644 "LibXML.bs" "/home/ken/perl5/perlbrew/perls/perl-5.32.0/bin/perl.exe" -MExtUtils:: +Command::MM -e 'cp_nonempty' -- LibXML.bs blib/arch/auto/XML/LibXML/L +ibXML.bs 644 gcc -c -I/usr/include/libxml2 -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI_ +_ -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector- +strong -D_FORTIFY_SOURCE=2 -DUSEIMPORTLIB -O3 -DVERSION=\"2.0206\" +-DXS_VERSION=\"2.0206\" "-I/home/ken/perl5/perlbrew/perls/perl-5.32. +0/lib/5.32.0/cygwin-thread-multi/CORE" -DHAVE_UTF8 Av_CharPtrPtr.c In file included from Av_CharPtrPtr.c:7: /home/ken/perl5/perlbrew/perls/perl-5.32.0/lib/5.32.0/cygwin-thread-mu +lti/CORE/perl.h:861:13: fatal error: xlocale.h: No such file or direc +tory 861 | # include <xlocale.h> | ^~~~~~~~~~~ compilation terminated. make: *** [Makefile:438: Av_CharPtrPtr.o] Error 1 SHLOMIF/XML-LibXML-2.0206.tar.gz /usr/bin/make -- NOT OK Failed during this command: SHLOMIF/XML-LibXML-2.0206.tar.gz : make NO

I checked and have a plethora of xlocale.h in various places (see spoiler):

I'm looking for some advice on how to handle this:

Other Perl programs seem to working fine, including Tk under Cygwin-X. Ask if you'd like additional information. Any help appreciated.

— Ken


In reply to Update XML::LibXML - can't find "xlocale.h" by kcott

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.