XML::Simple Installation Problems after Fresh CentOS 4.4 Install


Well-Known Member
Feb 20, 2005
Hello all,

I recently reinstalled CentOS 4.4 on a server and /scripts/upcp had some issues installing/updating XML::Simple. I am posting this to help people solve this issue if they run into it.

It was dying with the error:

--- cut here ---
Removing previously used /home/.cpan/build/XML-Simple-2.16

CPAN.pm: Going to build G/GR/GRANTM/XML-Simple-2.16.tar.gz

Checking installed modules ...
could not find ParserDetails.ini in /usr/lib/perl5/site_perl/5.8.7/XML/SAX
Can't locate object method "new" via package "XML::SAX::PurePerl" at /usr/lib/perl5/site_perl/5.8.7/XML/SAX/ParserFactory.pm line 43.
CPAN: YAML loaded ok
make: *** No targets specified and no makefile found. Stop.
/usr/bin/make -- NOT OK
Running make install
make had returned bad status, install seems impossible
--- cut here ---

Here is what I did to fix the install:

1. I had a ParserDetails.ini in another location so I copied it to the new location:
#cp /usr/lib/perl5/vendor_perl/5.8.5/XML/SAX/ParserDetails.ini

2. Installed XML::LibXML::SAX (This installed a couple other perl modules) using CPAN
# perl -MCPAN -e 'install XML::LibXML::SAX'

3. Installed XML::Simple
# perl -MCPAN -e 'install XML::Simple'

That should fix the errors in /scripts/upcp.