Module installation Error
Anonymous Monk
created: 2006-04-01 07:32:23

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,  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,  line 3991.

How to avoid this error?. Thanks in advance.

Re: Module installation Error
created: 2006-04-01 15:34:10
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))->save_parsers()"
    

perlmonks.org content © perlmonks.org and Anonymous Monk, randyk

prlmnks.org © 2006 edmund von der burg (eccles & toad)

v 0.03