Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Update XML::LibXML - can't find "xlocale.h" [workaround]

by kcott (Archbishop)
on Jan 02, 2021 at 00:55 UTC ( [id://11126116]=note: print w/replies, xml ) Need Help??


in reply to Update XML::LibXML - can't find "xlocale.h"

Thanks to all who offered advice (upvotes all round). I took bits of information from various responses; this is a general reply to everyone. I determined a workaround, which I'll document below for anyone encountering the same problem. I suspect an actual solution would be to rebuild Perl and reinstall all modules (a fairly lengthy task which I really don't have time for right now).

Information regarding the missing xlocale.h: "glibc wiki: Removal of 'xlocale.h'".
Information about how this affects Perl: "glibc-2.26 removed xlocale.h".
Based on that information, I edited config.h (which is in the same directory as perl.h in the error message).

$ ls -al config.h* -r--r--r-- 1 ken None 164422 Jun 23 2020 config.h $ cp config.h config.h-20210102a $ chmod +w config.h $ vi config.h $ chmod -w config.h $ ls -al config.h* -r--r--r-- 1 ken None 164425 Jan 2 10:55 config.h -r--r--r-- 1 ken None 164422 Jan 2 10:51 config.h-20210102a $ diff config.h config.h-20210102a 3096c3096 < /*#define I_XLOCALE / **/ --- > #define I_XLOCALE /**/

Now back to cpan:

cpan[1]> install XML::LibXML ... SHLOMIF/XML-LibXML-2.0206.tar.gz /usr/bin/make install -- OK cpan[2]>

And a very quick confirmation:

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

— Ken

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11126116]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-04-18 18:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found