Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

XML::Simple Installation Problems after Fresh CentOS 4.4 Install

Discussion in 'General Discussion' started by niatech, Feb 20, 2007.

  1. niatech

    niatech Well-Known Member

    Joined:
    Feb 20, 2005
    Messages:
    121
    Likes Received:
    0
    Trophy Points:
    166
    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
    /usr/lib/perl5/site_perl/5.8.7/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.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice