in reply to XML Module Loading Problem

Actually installing XML::Parser normally installs Expat, at least with previous versions of XML::Parser, so you should not have to install Expat separately.

There are various versions of Expat out there, one that comes with Apache (for Xerces I think) and I think others (a Python one?). All are dynamically linked so you might have installed one that's not compatible with the version of XML::Parser you have.

That said I have no idea how to fix this! try installing XML::Parser 2.27 maybe? I think it uses yet-another-version of Expat.

Clark Cooper (for Perl), Sean McGrath (for Python) and others are currently trying to merge back all of the different versions (which still does not help you much I guess).

Replies are listed 'Best First'.
Re: Re: XML Module Loading Problem
by Petruchio (Vicar) on Dec 07, 2000 at 15:01 UTC
    Actually inatalling XML::Parser normally installs Expat, at least with previous versions of XML::Parser, so you should not have to install Expat separately.

    That's interesting. I've installed XML::Parser on two boxen via CPAN in just the last two weeks, and it doesn't install Expat. Though I only really run Debian... so not to say you're wrong, but my experiences have been consistent and different than yours. Perhaps someone will present a larger view and clue us in.

    Update:

    From the README for XML-Parser-2.30:

    Differences from Version 2.29 ============================= Expat is no longer included with this package. It must now be already installed on your system as a library. You may download the library version of expat from http://sourceforge.net/projects/expat/. After downloading, expat must be configured (an automatic script does this), built and installed.

    mirod runs 2.27... guess that explains it.

      Thanks, mirod and Petruchio. I gave up on trying to install XML::Parser 2.30, and installed 2.29 instead. It works fine.

      I hope that the developers of XML::Parser will return to the pre-2.30 practice of offering a version which has expat built in. Some people want to use XML and perl but are not experts in module and C library installation.

      Including expat for those who want it seems like the perlish thing to do.