in reply to After compiling a script using PAR::Packer I get the error Can't locate XML/LibXML/SAX.pm in @INC

First of all, XML::LibXML (and thus XML::LibXML::SAX) come with Strawberry Perl. So you do have the module.

In your Perl installation, there's a file named XML/SAX/ParserDetails.ini that says which SAX parsers you have installed. XML::Simple uses the first parser listed in this file. For you, that parser is XML::LibXML:SAX.

The problem is that PAR::Packer doesn't know this, so it didn't include XML::LibXML:SAX in the distributable package. You'll need to notify PAR::Packer of this when you create the distributable package.

pp -M XML::LibXML::SAX ...

Updated due to a better understanding of the question.

  • Comment on Re: After compiling a script using PAR::Packer I get the error Can't locate XML/LibXML/SAX.pm in @INC
  • Select or Download Code

Replies are listed 'Best First'.
Re^2: After compiling a script using PAR::Packer I get the error Can't locate XML/LibXML/SAX.pm in @INC
by Anonymous Monk on May 15, 2015 at 23:27 UTC
      I've never used pp. Feel free to provide the more complete command.