Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I try to install modules from ppm. It shows error for all modules while installing, as shown below :

==================== Install 'XML-XSLT' version 0.48 in ActivePerl 5.8.4.810. ==================== Downloaded 26792 bytes. Extracting 9/9: blib/arch/auto/XML/XSLT/.exists Unable to recognise encoding of this document at C:/Perl/site/lib/XML/ +SAX/PurePerl/EncodingDetect.pm line 96, <CLIENT> line 3991. Installing C:\Perl\html\bin\xslt-parser.html Installing C:\Perl\html\site\lib\XML\XSLT.html Installing C:\Perl\site\lib\XML\XSLT.pm Installing C:\Perl\bin\xslt-parser Installing C:\Perl\bin\xslt-parser.bat Successfully installed XML-XSLT version 0.48 in ActivePerl 5.8.4.810.

Error is:

Unable to recognise encoding of this document at C:/Perl/site/lib/XML/ +SAX/PurePerl/EncodingDetect.pm line 96, <CLIENT> line 3991.

How to avoid this error?. Thanks in advance.

Replies are listed 'Best First'.
Re: Module installation Error
by randyk (Parson) on Apr 01, 2006 at 20:34 UTC
    This actually is a warning, not an error, in that the installation still proceeds. The issue is a known one, with a workaround at present being to use a default SAX parser other than XML::SAX::PurePerl. You can do this by:
    • installing, for example, XML-SAX-ExpatXS;
    • issuing the following command to register it (all on one line):
      C:\>perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::ExpatXS))->sa +ve_parsers()"