Score:0

Trying to install XML::Parser on RHEL8 Linux

cr flag

I'm trying to install XML::Parser in RHEL8 Linux and have both OS RPM packages 'expat' and 'expat-devel' installed. I also have a successful expat Perl module installation running:

cpanm XML::Parser::Expat
XML::Parser::Expat is up to date. (2.46) 

I'm running cpanm XML::Parser and getting:

Expat must be installed prior to building XML::Parser

and I can't find it in the standard library directories.

I also tried specifying these:

  • EXPATLIBPATH=... To set the directory in which to find libexpat
  • EXPATINCPATH=... To set the directory in which to find expat.h

And running

perl Makefile.PL EXPATLIBPATH=/usr/lib EXPATINCPATH=/usr/include

but with no difference. Any suggestions?

Score:0
fo flag

It looks like you have installed the expat package and expat Perl module, but the XML::Parser module is still not finding it. Try installing the expat-devel package which contains the header files needed for the XML::Parser installation. If that doesn't work, you can try specifying the EXPATLIBPATH and EXPATINCPATH environment variables when running the Perl Makefile.PL command to point to the directories where expat is installed.

codecat avatar
cr flag
Thanks for replying. If you reread my post you'll notice that I already tried both of those. Both expat and expat-devel are installed and I tried the two ENV variables.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.