The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

CentOS 5: [checkperlmodules] The perl module XML::Parser could not be installed.

Discussion in 'General Discussion' started by peconi, Jan 20, 2009.

  1. peconi

    peconi Active Member

    Joined:
    Mar 27, 2005
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    Perl's XML Parser is failing to install. I'm getting emails from the server always informing me about it:

    [checkperlmodules] The perl module XML::Parser could not be installed.

    Code:
    /scripts/realperlinstaller XML::Parser
    and

    Code:
    cpan -i XML::Parser
    and I always get:

    Code:
    .
    .
    .
    PAN: File::Temp loaded ok (v0.21)
    
      CPAN.pm: Going to build M/MS/MSERGEANT/XML-Parser-2.36.tar.gz
    
    Note (probably harmless): No library found for -lexpat
    
    Expat must be installed prior to building XML::Parser and I can't find
    it in the standard library directories. You can download expat from:
    
    http://sourceforge.net/projects/expat/
    
    If expat is installed, but in a non-standard directory, then use the
    following options to Makefile.PL:
    
        EXPATLIBPATH=...  To set the directory in which to find libexpat
    
        EXPATINCPATH=...  To set the directory in which to find expat.h
    
    For example:
    
        perl Makefile.PL EXPATLIBPATH=/home/me/lib EXPATINCPATH=/home/me/include
    
    Note that if you build against a shareable library in a non-standard location
    you may (on some platforms) also have to set your LD_LIBRARY_PATH environment
    variable at run time for perl to find the library.
    
    No 'Makefile' created  MSERGEANT/XML-Parser-2.36.tar.gz
      /usr/bin/perl Makefile.PL OTHERLDFLAGS=-L/usr/lib64 LDFLAGS=-L/usr/lib64 EXTRALIBDIR=/usr/lib64 -- NOT OK
    Running make test
      Make had some problems, won't test
    Running make install
      Make had some problems, won't install
    
    Any help would be appreciated.

    perl version : 5.8.8 | cPanel - latest current
     
  2. Zishan

    Zishan Well-Known Member

    Joined:
    Aug 6, 2005
    Messages:
    104
    Likes Received:
    1
    Trophy Points:
    0
    This specifies the reason for perl module XML::Parser not being installed. Is expat installed on your server? You can verify it using "rpm -qa | grep expat" command. If its not installed you can install it using Yum or grab the rpms from CentOS Mirror and install it. Once installed you will be able to install XML::Parser.
     
  3. peconi

    peconi Active Member

    Joined:
    Mar 27, 2005
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    It seems that I do have it installed :( What now??

    Code:
    root@slice1 [/home/ibeta]# rpm -qa | grep expat
    expat-1.95.8-8.2.1
    expat-devel-1.95.8-8.2.1
    root@slice1 [/home/ibeta]# yum install expat
    Loading "fastestmirror" plugin
    Determining fastest mirrors
     * base: centosy.centos.org
     * updates: centosy.centos.org
     * addons: centosf3.centos.org
     * extras: centosf.centos.org
    base                      100% |=========================| 1.1 kB    00:00
    updates                   100% |=========================|  951 B    00:00
    addons                    100% |=========================|  951 B    00:00
    extras                    100% |=========================| 1.1 kB    00:00
    Excluding Packages in global exclude list
    Finished
    Setting up Install Process
    Parsing package install arguments
    [B]Package expat - 1.95.8-8.2.1.x86_64 is already installed.[/B]
    Nothing to do
    
     
  4. Zishan

    Zishan Well-Known Member

    Joined:
    Aug 6, 2005
    Messages:
    104
    Likes Received:
    1
    Trophy Points:
    0
    You might need to provide the output for /scripts/realperlinstaller XML::Parser or cpan -i XML::Parser.
     
  5. peconi

    peconi Active Member

    Joined:
    Mar 27, 2005
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    I did provide it in the very first post, the last part of it, here's all of it:

    Code:
    CPAN: Storable loaded ok (v2.18)
    Going to read /home/.cpan/Metadata
      Database was generated on Wed, 14 Jan 2009 04:26:58 GMT
    Running install for module 'XML::Parser'
    Running make for M/MS/MSERGEANT/XML-Parser-2.36.tar.gz
    CPAN: Digest::SHA loaded ok (v5.47)
    CPAN: Compress::Zlib loaded ok (v1.42)
    Checksum for /home/.cpan/sources/authors/id/M/MS/MSERGEANT/XML-Parser-2.36.tar.gz ok
    XML-Parser-2.36/
    XML-Parser-2.36/Changes
    XML-Parser-2.36/Expat/
    XML-Parser-2.36/Expat/encoding.h
    XML-Parser-2.36/Expat/Expat.pm
    XML-Parser-2.36/Expat/Expat.xs
    XML-Parser-2.36/Expat/Makefile.PL
    XML-Parser-2.36/Expat/typemap
    XML-Parser-2.36/Makefile.PL
    XML-Parser-2.36/MANIFEST
    XML-Parser-2.36/META.yml
    XML-Parser-2.36/Parser/
    XML-Parser-2.36/Parser/Encodings/
    XML-Parser-2.36/Parser/Encodings/big5.enc
    XML-Parser-2.36/Parser/Encodings/euc-kr.enc
    XML-Parser-2.36/Parser/Encodings/iso-8859-2.enc
    XML-Parser-2.36/Parser/Encodings/iso-8859-3.enc
    XML-Parser-2.36/Parser/Encodings/iso-8859-4.enc
    XML-Parser-2.36/Parser/Encodings/iso-8859-5.enc
    XML-Parser-2.36/Parser/Encodings/iso-8859-7.enc
    XML-Parser-2.36/Parser/Encodings/iso-8859-8.enc
    XML-Parser-2.36/Parser/Encodings/iso-8859-9.enc
    XML-Parser-2.36/Parser/Encodings/Japanese_Encodings.msg
    XML-Parser-2.36/Parser/Encodings/README
    XML-Parser-2.36/Parser/Encodings/windows-1250.enc
    XML-Parser-2.36/Parser/Encodings/windows-1252.enc
    XML-Parser-2.36/Parser/Encodings/x-euc-jp-jisx0221.enc
    XML-Parser-2.36/Parser/Encodings/x-euc-jp-unicode.enc
    XML-Parser-2.36/Parser/Encodings/x-sjis-cp932.enc
    XML-Parser-2.36/Parser/Encodings/x-sjis-jdk117.enc
    XML-Parser-2.36/Parser/Encodings/x-sjis-jisx0221.enc
    XML-Parser-2.36/Parser/Encodings/x-sjis-unicode.enc
    XML-Parser-2.36/Parser/LWPExternEnt.pl
    XML-Parser-2.36/Parser/Style/
    XML-Parser-2.36/Parser/Style/Debug.pm
    XML-Parser-2.36/Parser/Style/Objects.pm
    XML-Parser-2.36/Parser/Style/Stream.pm
    XML-Parser-2.36/Parser/Style/Subs.pm
    XML-Parser-2.36/Parser/Style/Tree.pm
    XML-Parser-2.36/Parser.pm
    XML-Parser-2.36/README
    XML-Parser-2.36/samples/
    XML-Parser-2.36/samples/canonical
    XML-Parser-2.36/samples/canontst.xml
    XML-Parser-2.36/samples/ctest.dtd
    XML-Parser-2.36/samples/REC-xml-19980210.xml
    XML-Parser-2.36/samples/xmlcomments
    XML-Parser-2.36/samples/xmlfilter
    XML-Parser-2.36/samples/xmlstats
    XML-Parser-2.36/t/
    XML-Parser-2.36/t/astress.t
    XML-Parser-2.36/t/cdata.t
    XML-Parser-2.36/t/decl.t
    XML-Parser-2.36/t/defaulted.t
    XML-Parser-2.36/t/encoding.t
    XML-Parser-2.36/t/ext.ent
    XML-Parser-2.36/t/ext2.ent
    XML-Parser-2.36/t/external_ent.t
    XML-Parser-2.36/t/file.t
    XML-Parser-2.36/t/finish.t
    XML-Parser-2.36/t/foo.dtd
    XML-Parser-2.36/t/namespaces.t
    XML-Parser-2.36/t/parament.t
    XML-Parser-2.36/t/partial.t
    XML-Parser-2.36/t/skip.t
    XML-Parser-2.36/t/stream.t
    XML-Parser-2.36/t/styles.t
    CPAN: File::Temp loaded ok (v0.21)
    CPAN: YAML loaded ok (v0.68)
    
      CPAN.pm: Going to build M/MS/MSERGEANT/XML-Parser-2.36.tar.gz
    
    No 'Makefile' created  MSERGEANT/XML-Parser-2.36.tar.gz
      /usr/bin/perl Makefile.PL OTHERLDFLAGS=-L/usr/lib64 LDFLAGS=-L/usr/lib64 EXTRALIBDIR=/usr/lib64 -- NOT OK
    Running make test
      Make had some problems, won't test
    Running make install
      Make had some problems, won't install
    
    
     
  6. ch1ll1man

    ch1ll1man Registered

    Joined:
    Jan 26, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Kent
    I have the same issue , CPANEL on CENTOS 5. Exact same error and have tried a number of things.

    I think the problem is as described in the error - it needs to be told where the actual LIB is being held. I will try to perform a build and post any findings up.
     
  7. ch1ll1man

    ch1ll1man Registered

    Joined:
    Jan 26, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Kent
    OK I managed to sort this little problem.

    Quick instructions

    as root -

    #cp /home/.cpan/sources/authors/id/M/MS/MSERGEANT/XML-Parser-2.34.tar.gz ~

    #cd ~

    #tar -xzf XML-Parser-2.34.tar.gz

    #cd XML-Parser-2.34

    #/scripts/cpan_sandbox/x86_64/perl Makefile.PL LDFLAGS=-L/usr/lib64 EXPATLIBPATH=/usr/lib64 EXPATINCPATH=/usr/include/

    #make install

    #/scripts/checkperlmodules

    You could edit the Makefile paths etc etc but this works just fine - all it does is say "expat is here buddy" and then it's happy to go ahead and complete.
     
Loading...

Share This Page