perl module problems on Mac OS X Server 10.4
I've been having terrible problems installing the perl module XML::Simple, which is required by Koha, on Mac OS X Server 10.4. Can anyone offer any suggestions? The error message I get is the following: Fatal Error: Your default XML Parser (XML::SAX::PurePerl) is broken. ... One way to avoid the problem is to install XML::SAX::Expat -- it will install itself as the system default XML parser and then you will be able to install XML::Simple successfully. I have installed XML::SAX::Expat but continue to get the error message. I do not know how to check whether XML::SAX::Expat is the default parser. I have been unable to find a discussion of this problem on the web. Thanks, Roger ******************************** Roger Hart Assistant Professor, Departments of History and Asian Studies University of Texas at Austin office: Room 470, Burdine Hall office phone: 512-475-7258 department fax: 512-475-7222 email: rhart@mail.utexas.edu http://uts.cc.utexas.edu/~rhart *********************************
Roger Hart escribió:
Fatal Error: Your default XML Parser (XML::SAX::PurePerl) is broken. ... One way to avoid the problem is to install XML::SAX::Expat -- it will install itself as the system default XML parser and then you will be able to install XML::Simple successfully.
When you run "perl Makefile.PL" in the standard XML::SAX distribution, it does the following checks: <snip> my $default_parser = ref(XML::SAX::ParserFactory->parser()); if ($default_parser eq 'XML::SAX::PurePerl') { my $version = XML::SAX->VERSION; if($version > 0.12 and $version < 0.15) { die <<"EOF"; </snip> So it seems to query XML::SAX::ParserFactory about a "parser", which can return XML::SAX::PurePerl or (possibly) other stuff. If the version of XML::SAX::PurePerl is 0.13 or 0.14, it will die with the message that you previously quoted. One quick and dirty solution might be trying to install the 0.8 (or < 0.13, in any case) distribution in [1]. However, if we look at the documentation for XML::SAX::ParserFactory in [2], we can specify a default parser in the SAX.ini file. In my distribution I've got a ParserDetails.ini under /usr/share/perl5/XML/SAX, which I can tweak to a sane parser. The PurePerl.pm version I have in my machine is "0.9". I use Debian GNU/Linux. I hope this information results useful to you. Jose [1] http://backpan.cpan.org/modules/by-module/XML/MSERGEANT/XML-SAX-PurePerl-0.8... [2] http://search.cpan.org/~msergeant/XML-SAX-0.14/SAX/ParserFactory.pm -- José M. Parrella -> Debian Sid, k2.6.17.13 Escuela de Ingenieria Electrica Universidad Central de Venezuela -> ucvlug.info
participants (2)
-
José Parrella -
Roger Hart