Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Could not find ParserDetails.ini

by mifflin (Curate)
on Jul 08, 2004 at 20:40 UTC ( [id://372945]=perlquestion: print w/replies, xml ) Need Help??

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

I just installed ActivePerl 5.8.4 build 810 and noticed that my XML::SAX apps no longer work. I also get the same error message when I use PPM. Does anyone know what I'm doing wrong?
ppm> install xml-writer
could not find ParserDetails.ini in C:/Perl/site/lib/XML/SAX
====================
Install 'xml-writer' version 0.510 in ActivePerl 5.8.3.809.
====================
Downloaded 11818 bytes.
Extracting 5/5: blib/arch/auto/XML/Writer/.exists
could not find ParserDetails.ini in C:/Perl/site/lib/XML/SAX
Installing C:\Perl\html\site\lib\XML\Writer.html
Installing C:\Perl\site\lib\XML\Writer.pm
Successfully installed xml-writer version 0.510 in ActivePerl 5.8.3.809.
Update:
Something just caught my eye on the install 'xml-writer' line
It says it is installing it in ActivePerl 5.8.3.809 which is not on my machine (it was , I uninstalled it before installing 5.8.4.810). I know 5.8.4 is on my machine though...
C:\Documents and Settings\erickn>perl -v This is perl, v5.8.4 built for MSWin32-x86-multi-thread (with 3 registered patches, see perl -V for more detail) Copyright 1987-2004, Larry Wall Binary build 810 provided by ActiveState Corp. http://www.ActiveState. +com ActiveState is a division of Sophos. Built Jun 1 2004 11:52:21 Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using `man perl' or `perldoc perl'. If you have access to + the Internet, point your browser at http://www.perl.com/, the Perl Home Pa +ge.
Another Upate:
I just looked at our Unix 5.8 install and it does have a ParserDetails.ini file
It's contents are...
[XML::SAX::PurePerl] http://xml.org/sax/features/namespaces = 1 [XML::SAX::Expat] http://xml.org/sax/features/namespaces = 1 http://xml.org/sax/features/external-general-entities = 1 http://xml.org/sax/features/external-parameter-entities = 1
What normally creates this file?

Replies are listed 'Best First'.
Re: Could not find ParserDetails.ini
by PodMaster (Abbot) on Jul 08, 2004 at 23:40 UTC
    • parserdetails.ini
      • could not find ParserDetails.ini
        • http://perl-xml.sourceforge.net/faq/#parserdetails.ini
          "could not find ParserDetails.ini"

          A number of people have reported encountering the error "could not find ParserDetails.ini in ..." when installing or attempting to use XML::SAX. ParserDetails.ini is used by XML::SAX::ParserFactory to determine which SAX parser modules are installed. It should be created by the XML::SAX installation script and should be updated automatically by the install script for each SAX parser module.

          • If you are installing XML::SAX manually you must run Makefile.PL. Unpacking the tarball and copying the files into your Perl lib directory will not work.

          • During the initial installation, if you are asked whether ParserDetails.ini should be updated, always say yes. If you say no, the file will not be created.

          • If you are using ActivePerl, the following command should resolve the problem:

            ppm install http://theoryx5.uwinnipeg.ca/ppms/XML-SAX.ppd
            	

          Once you have successfully installed XML::SAX, you should consider installing a module such as XML::SAX::Expat or XML::LibXML to replace the slower pure-Perl parser bundled with SAX.

          If you are packaging XML::SAX in an alternative distribution format (such as RPM), your post-install script should check if ParserDetails.ini exists and if it doesn't, run this command:

          perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()"
                

          Don't unconditionally run this command, or users who re-install XML::SAX may find that any fast SAX parser they have installed will be replaced as the default by the pure-Perl parser.

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-05-20 06:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found