Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 14 of 14
  1. #1
    Member
    Join Date
    Sep 2003
    Posts
    158

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

    On Centos 5 64-bit, as of tonight's whm cron run I'm getting:
    [checkperlmodules] The perl module XML::Parser could not be installed.

    This module is required by cPanel, and the system may not function correctly until it is installed, and functional. Below is the results of the auto-install attempt:

    Test Run
    ==============
    Can't locate XML/Parser.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at - line 1.
    BEGIN failed--compilation aborted at - line 1.

    ...

    cPCPAN: Module (XML::Parser) holdback (2.36 held back to 2.34)
    cPCPAN: Module (XML::Parser) holdback (2.34 held back to 2.34)
    cPCPAN: Module (XML::Parser) holdback (2.34 held back to 2.34)
    Running install for module 'XML::Parser'
    ...

    CPAN: File::Temp loaded ok (v0.22)

    CPAN.pm: Going to build cPCPAN/XML-Parser-2.34.tar.gz

    perl-64bit-hack: enabled
    Checking if your kit is complete...
    Looks good
    'EXTRALIBDIR' is not a known MakeMaker parameter name.
    'OTHERLDFLAGS' is not a known MakeMaker parameter name.
    Writing Makefile for XML::Parser::Expat
    Writing Makefile for XML::Parser
    cp Parser/Encodings/x-sjis-cp932.enc blib/lib/XML/Parser/Encodings/x-sjis-cp932.enc
    cp Parser/Encodings/iso-8859-7.enc blib/lib/XML/Parser/Encodings/iso-8859-7.enc
    cp Parser/Style/Tree.pm blib/lib/XML/Parser/Style/Tree.pm
    cp Parser/Encodings/iso-8859-9.enc blib/lib/XML/Parser/Encodings/iso-8859-9.enc
    cp Parser/Encodings/x-euc-jp-unicode.enc blib/lib/XML/Parser/Encodings/x-euc-jp-unicode.enc
    cp Parser/Encodings/README blib/lib/XML/Parser/Encodings/README
    cp Parser/Encodings/euc-kr.enc blib/lib/XML/Parser/Encodings/euc-kr.enc
    cp Parser/Encodings/windows-1250.enc blib/lib/XML/Parser/Encodings/windows-1250.enc
    cp Parser/Encodings/windows-1252.enc blib/lib/XML/Parser/Encodings/windows-1252.enc
    cp Parser/Encodings/big5.enc blib/lib/XML/Parser/Encodings/big5.enc
    cp Parser/Encodings/Japanese_Encodings.msg blib/lib/XML/Parser/Encodings/Japanese_Encodings.msg
    cp Parser/Encodings/iso-8859-3.enc blib/lib/XML/Parser/Encodings/iso-8859-3.enc
    cp Parser/Style/Subs.pm blib/lib/XML/Parser/Style/Subs.pm
    cp Parser/Encodings/iso-8859-4.enc blib/lib/XML/Parser/Encodings/iso-8859-4.enc
    cp Parser/Encodings/iso-8859-8.enc blib/lib/XML/Parser/Encodings/iso-8859-8.enc
    cp Parser/Encodings/x-euc-jp-jisx0221.enc blib/lib/XML/Parser/Encodings/x-euc-jp-jisx0221.enc
    cp Parser/Encodings/x-sjis-jdk117.enc blib/lib/XML/Parser/Encodings/x-sjis-jdk117.enc
    cp Parser/Encodings/iso-8859-2.enc blib/lib/XML/Parser/Encodings/iso-8859-2.enc
    cp Parser/Encodings/x-sjis-unicode.enc blib/lib/XML/Parser/Encodings/x-sjis-unicode.enc
    cp Parser/LWPExternEnt.pl blib/lib/XML/Parser/LWPExternEnt.pl
    cp Parser/Style/Objects.pm blib/lib/XML/Parser/Style/Objects.pm
    cp Parser.pm blib/lib/XML/Parser.pm
    cp Parser/Style/Debug.pm blib/lib/XML/Parser/Style/Debug.pm
    cp Parser/Encodings/x-sjis-jisx0221.enc blib/lib/XML/Parser/Encodings/x-sjis-jisx0221.enc
    cp Parser/Style/Stream.pm blib/lib/XML/Parser/Style/Stream.pm
    cp Parser/Encodings/iso-8859-5.enc blib/lib/XML/Parser/Encodings/iso-8859-5.enc
    make[1]: Entering directory `/home/.cpan/build/XML-Parser-2.34-wODrCb/Expat'
    cp Expat.pm ../blib/lib/XML/Parser/Expat.pm
    /usr/bin/perl /usr/lib/perl5/site_perl/5.8.8/ExtUtils/xsubpp -noprototypes -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap Expat.xs > Expat.xsc && mv Expat.xsc Expat.c
    gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"2.34\" -DXS_VERSION=\"2.34\" -fPIC "-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE" Expat.c
    gcc-64bit-hack: enabled
    Expat.xs:12:19: error: expat.h: No such file or directory
    Expat.xs:60: error: expected specifier-qualifier-list before 'XML_Parser'
    Expat.xs:111: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'nsdelim'
    Expat.xs:194: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ms'
    Expat.xs:197: error: expected ')' before 'parser'
    Expat.xs:249: error: expected ')' before '*' token
    Expat.xs:286: error: expected ')' before 'parser'
    Expat.xs: In function 'characterData':
    Expat.xs:470: error: 'CallbackVector' has no member named 'char_sv'
    Expat.xs: In function 'startElement':
    Expat.xs:482: error: 'CallbackVector' has no member named 'ns'
    Expat.xs:488: error: 'CallbackVector' has no member named 'st_serial'
    Expat.xs:490: error: 'CallbackVector' has no member named 'skip_until'
    Expat.xs:491: error: 'CallbackVector' has no member named 'st_serial'
    Expat.xs:491: error: 'CallbackVector' has no member named 'skip_until'
    Expat.xs:494: error: 'CallbackVector' has no member named 'skip_until'
    Expat.xs:498: error: 'CallbackVector' has no member named 'st_serial_stackptr'
    Expat.xs:498: error: 'CallbackVector' has no member named 'st_serial_stacksize'
    Expat.xs:499: error: 'CallbackVector' has no member named 'st_serial_stacksize'
    Expat.xs:501: error: 'CallbackVector' has no member named 'st_serial_stack'
    Expat.xs:501: warning: comparison is always false due to limited range of data type
    Expat.xs:501: error: 'CallbackVector' has no member named 'st_serial_stack'
    Expat.xs:502: error: 'CallbackVector' has no member named 'st_serial_stacksize'
    Expat.xs:505: error: 'CallbackVector' has no member named 'st_serial_stack'
    Expat.xs:505: error: 'CallbackVector' has no member named 'st_serial_stackptr'
    Expat.xs:505: error: 'CallbackVector' has no member named 'st_serial'
    Expat.xs:508: error: 'CallbackVector' has no member named 'nstab'
    Expat.xs:508: error: 'CallbackVector' has no member named 'nslst'
    Expat.xs:512: error: 'CallbackVector' has no member named 'start_sv'
    Expat.xs:512: error: 'CallbackVector' has no member named 'start_sv'
    Expat.xs:512: error: 'CallbackVector' has no member named 'start_sv'
    Expat.xs:512: error: 'CallbackVector' has no member named 'start_sv'
    Expat.xs:512: error: 'CallbackVector' has no member named 'start_sv'
    Expat.xs:512: error: 'CallbackVector' has no member named 'start_sv'
    Expat.xs:512: error: 'CallbackVector' has no member named 'start_sv'
    Expat.xs:512: error: 'CallbackVector' has no member named 'start_sv'

    ...

    Expat.c:2826: error: expected ';' before 'parser'
    Expat.xs:2144: error: 'parser' undeclared (first use in this function)
    Expat.xs:2144: warning: cast to pointer from integer of different size
    Expat.xs:2147: error: 'CallbackVector' has no member named 'ns'
    Expat.xs:2148: error: 'CallbackVector' has no member named 'p'
    Expat.xs:2149: error: 'XML_StartNamespaceDeclHandler' undeclared (first use in this function)
    Expat.xs:2149: error: expected ')' before numeric constant
    Expat.xs:2154: error: 'XML_StartElementHandler' undeclared (first use in this function)
    Expat.xs:2154: error: expected ')' before numeric constant
    Expat.xs:2158: error: 'XML_UnknownEncodingHandler' undeclared (first use in this function)
    Expat.xs:2158: error: expected ')' before numeric constant
    Expat.c: In function 'XS_XML__Parser__Expat_ElementIndex':
    Expat.c:2863: error: 'XML_Parser' undeclared (first use in this function)
    Expat.c:2863: error: expected ';' before 'parser'
    Expat.c:2864: warning: ISO C90 forbids mixed declarations and code
    Expat.xs:2167: error: 'parser' undeclared (first use in this function)
    Expat.xs:2167: warning: cast to pointer from integer of different size
    Expat.xs:2168: error: 'CallbackVector' has no member named 'st_serial_stack'
    Expat.xs:2168: error: 'CallbackVector' has no member named 'st_serial_stackptr'
    Expat.c: In function 'XS_XML__Parser__Expat_SkipUntil':
    Expat.c:2889: error: 'XML_Parser' undeclared (first use in this function)
    Expat.c:2889: error: expected ';' before 'parser'
    Expat.c:2890: warning: ISO C90 forbids mixed declarations and code
    Expat.xs:2179: error: 'parser' undeclared (first use in this function)
    Expat.xs:2179: warning: cast to pointer from integer of different size
    Expat.xs:2180: error: 'CallbackVector' has no member named 'st_serial'
    Expat.xs:2182: error: 'CallbackVector' has no member named 'skip_until'
    Expat.c: In function 'XS_XML__Parser__Expat_Do_External_Parse':
    Expat.c:2916: error: 'XML_Parser' undeclared (first use in this function)
    Expat.c:2916: error: expected ';' before 'parser'
    Expat.c:2917: warning: ISO C90 forbids mixed declarations and code
    Expat.xs:2194: error: 'parser' undeclared (first use in this function)
    Expat.xs:2194: warning: cast to pointer from integer of different size
    Expat.xs:2205: warning: unused variable 'pret'
    Expat.xs:2194: warning: unused variable 'cbv'
    Expat.xs:2192: warning: unused variable 'type'
    make[1]: *** [Expat.o] Error 1
    make[1]: Leaving directory `/home/.cpan/build/XML-Parser-2.34-wODrCb/Expat'
    make: *** [subdirs] Error 2
    cPCPAN/XML-Parser-2.34.tar.gz
    /usr/bin/make OTHERLDFLAGS=-L/usr/lib64 LDFLAGS=-L/usr/lib64 EXTRALIBDIR=/usr/lib64 OTHERLDFLAGS=-L/usr/lib64 LDFLAGS=-L/usr/lib64 EXTRALIBDIR=/usr/lib64 -- NOT OK




    CPAN: YAML loaded ok (v0.71)
    Running make install
    Make had returned bad status, install seems impossible
    perlmod--Install done
    So I can't get the (now?) whm/cpanel required modules to install:
    XML::Parser
    XML::Parser::Expat

    Can someone give me a tip or is anyone else seeing this as of today?

  2. #2
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,066

    Default Does installing it manually help?

    Does installing the Perl modules using our script return the same error? Try the following commands:

    Code:
    # /scripts/perlinstaller --force XML::Parser
    # /scripts/perlinstaller --force XML::Parser::Expat
    If this still does not work, are there different binaries at /usr/bin/perl and /usr/local/bin/perl? One should be a symlink to the other; both should not be binary files. What is the output of the following commands?

    Code:
    # ls -alh /usr/bin/perl
    # ls -alh /usr/local/bin/perl
    If they are both files, and one or the other is not a symlink, move the older file to /root, and then create a symlink to the newer file in its place. After doing that, reloading CPAN and running /scripts/checkperlmodules should fix this type of problem:

    Code:
    # perl -MCPAN -e shell
    cpan> install Bundle::CPAN
    cpan> reload index
    cpan> reload cpan
    cpan> quit
    # /scripts/checkperlmodules --full
    If /scripts/checkperlmodules --full reports any failed modules after these steps, it will need further investigation. I would be happy to look at your server for you if you submit a ticket and PM me the ticket number.
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

  3. #3
    Member This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Dec 2009
    Posts
    177
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Hello,
    I have the same issue after the latest update of cPanel Current Build.

    Cron <root@green> /usr/bin/test -x /usr/local/cpanel/bin/optimizefs && /usr/local/cpanel/bin/optimizefs

    Can't locate Carp/Heavy.pm in @INC (@INC contains: /scripts /usr/local/cpanel/build-tools/stubs /usr/lib/perl5/5.6.2/i686-linux /usr/lib/perl5/5.6.2/i686-linux /usr/lib/perl5/5.6.2 /usr/lib/perl5/site_perl/5.6.2/i686-linux /usr/lib/perl5/site_perl/5.6.2/i686-linux /usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5/site_perl/5.6.2/i686-linux /usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5/site_perl . /usr/lib/perl5/5.6.2/i686-linux /usr/lib/perl5/5.6.2 /usr/lib/perl5/site_perl/5.6.2/i686-linux /usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5/site_perl .) at /usr/lib/perl5/5.6.2/Carp.pm line 109
    Good Deal Hosting - Shared, Reseller, and Shoutcast Hosting
    OpenVZ VPS Solutions, Nginx Admin Forum

  4. #4
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,066

    Default This appears to be a different issue

    The issue with Carp::Heavy refers to a different Perl module than XML::Parser, which is what the original poster mentioned. Please submit a ticket for this so that we may investigate the particular issue on your server:

    https://tickets.cpanel.net/submit/in...eqtype=tickets

    If you would like, you can place "Attn: Jared" in the ticket subject and I would be happy to look at it for you.
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

  5. #5
    Member
    Join Date
    Sep 2003
    Posts
    158

    Default

    Quote Originally Posted by cPanelJared View Post
    Does installing the Perl modules using our script return the same error? Try the following commands:

    Code:
    # /scripts/perlinstaller --force XML::Parser
    # /scripts/perlinstaller --force XML::Parser::Expat
    Yes, the scripts return the same error:

    /scripts/perlinstaller --force XML::Parser
    <snip for forum post>
    XML-Parser-2.34/t/encoding.t
    XML-Parser-2.34/t/ext.ent
    XML-Parser-2.34/t/ext2.ent
    XML-Parser-2.34/t/external_ent.t
    XML-Parser-2.34/t/file.t
    XML-Parser-2.34/t/finish.t
    XML-Parser-2.34/t/foo.dtd
    XML-Parser-2.34/t/namespaces.t
    XML-Parser-2.34/t/parament.t
    XML-Parser-2.34/t/partial.t
    XML-Parser-2.34/t/skip.t
    XML-Parser-2.34/t/stream.t
    XML-Parser-2.34/t/styles.t

    CPAN: File::Temp loaded ok (v0.22)

    CPAN.pm: Going to build cPCPAN/XML-Parser-2.34.tar.gz

    perl-64bit-hack: enabled
    Checking if your kit is complete...
    Looks good
    'EXTRALIBDIR' is not a known MakeMaker parameter name.
    'OTHERLDFLAGS' is not a known MakeMaker parameter name.
    Writing Makefile for XML::Parser::Expat
    Writing Makefile for XML::Parser
    cp Parser/Encodings/x-sjis-cp932.enc blib/lib/XML/Parser/Encodings/x-sjis-cp932.enc
    cp Parser/Encodings/iso-8859-7.enc blib/lib/XML/Parser/Encodings/iso-8859-7.enc
    cp Parser/Style/Tree.pm blib/lib/XML/Parser/Style/Tree.pm
    cp Parser/Encodings/iso-8859-9.enc blib/lib/XML/Parser/Encodings/iso-8859-9.enc
    cp Parser/Encodings/x-euc-jp-unicode.enc blib/lib/XML/Parser/Encodings/x-euc-jp-unicode.enc
    cp Parser/Encodings/README blib/lib/XML/Parser/Encodings/README
    <snip for forum post>
    Expat.xs:2144: warning: cast to pointer from integer of different size
    Expat.xs:2147: error: 'CallbackVector' has no member named 'ns'
    Expat.xs:2148: error: 'CallbackVector' has no member named 'p'
    Expat.xs:2149: error: 'XML_StartNamespaceDeclHandler' undeclared (first use in this function)
    Expat.xs:2149: error: expected ')' before numeric constant
    Expat.xs:2154: error: 'XML_StartElementHandler' undeclared (first use in this function)
    Expat.xs:2154: error: expected ')' before numeric constant
    Expat.xs:2158: error: 'XML_UnknownEncodingHandler' undeclared (first use in this function)
    Expat.xs:2158: error: expected ')' before numeric constant
    Expat.c: In function 'XS_XML__Parser__Expat_ElementIndex':
    Expat.c:2863: error: 'XML_Parser' undeclared (first use in this function)
    Expat.c:2863: error: expected ';' before 'parser'
    Expat.c:2864: warning: ISO C90 forbids mixed declarations and code
    Expat.xs:2167: error: 'parser' undeclared (first use in this function)
    Expat.xs:2167: warning: cast to pointer from integer of different size
    Expat.xs:2168: error: 'CallbackVector' has no member named 'st_serial_stack'
    Expat.xs:2168: error: 'CallbackVector' has no member named 'st_serial_stackptr'
    Expat.c: In function 'XS_XML__Parser__Expat_SkipUntil':
    Expat.c:2889: error: 'XML_Parser' undeclared (first use in this function)
    Expat.c:2889: error: expected ';' before 'parser'
    Expat.c:2890: warning: ISO C90 forbids mixed declarations and code
    Expat.xs:2179: error: 'parser' undeclared (first use in this function)
    Expat.xs:2179: warning: cast to pointer from integer of different size
    Expat.xs:2180: error: 'CallbackVector' has no member named 'st_serial'
    Expat.xs:2182: error: 'CallbackVector' has no member named 'skip_until'
    Expat.c: In function 'XS_XML__Parser__Expat_Do_External_Parse':
    Expat.c:2916: error: 'XML_Parser' undeclared (first use in this function)
    Expat.c:2916: error: expected ';' before 'parser'
    Expat.c:2917: warning: ISO C90 forbids mixed declarations and code
    Expat.xs:2194: error: 'parser' undeclared (first use in this function)
    Expat.xs:2194: warning: cast to pointer from integer of different size
    Expat.xs:2205: warning: unused variable 'pret'
    Expat.xs:2194: warning: unused variable 'cbv'
    Expat.xs:2192: warning: unused variable 'type'
    make[1]: *** [Expat.o] Error 1
    make[1]: Leaving directory `/home/.cpan/build/XML-Parser-2.34-7LqRWY/Expat'
    make: *** [subdirs] Error 2
    cPCPAN/XML-Parser-2.34.tar.gz
    /usr/bin/make OTHERLDFLAGS=-L/usr/lib64 LDFLAGS=-L/usr/lib64 EXTRALIBDIR=/usr/lib64 OTHERLDFLAGS=-L/usr/lib64 LDFLAGS=-L/usr/lib64 EXTRALIBDIR=/usr/lib64 -- NOT OK
    CPAN: YAML loaded ok (v0.71)


    Running make install
    Make had returned bad status, install seems impossible
    perlmod--Install done




    /scripts/perlinstaller --force XML::Parser::Expat
    <snip for forum post>
    Expat.c:2889: error: 'XML_Parser' undeclared (first use in this function)
    Expat.c:2889: error: expected ';' before 'parser'
    Expat.c:2890: warning: ISO C90 forbids mixed declarations and code
    Expat.xs:2179: error: 'parser' undeclared (first use in this function)
    Expat.xs:2179: warning: cast to pointer from integer of different size
    Expat.xs:2180: error: 'CallbackVector' has no member named 'st_serial'
    Expat.xs:2182: error: 'CallbackVector' has no member named 'skip_until'
    Expat.c: In function 'XS_XML__Parser__Expat_Do_External_Parse':
    Expat.c:2916: error: 'XML_Parser' undeclared (first use in this function)
    Expat.c:2916: error: expected ';' before 'parser'
    Expat.c:2917: warning: ISO C90 forbids mixed declarations and code
    Expat.xs:2194: error: 'parser' undeclared (first use in this function)
    Expat.xs:2194: warning: cast to pointer from integer of different size
    Expat.xs:2205: warning: unused variable 'pret'
    Expat.xs:2194: warning: unused variable 'cbv'
    Expat.xs:2192: warning: unused variable 'type'
    make[1]: *** [Expat.o] Error 1
    make[1]: Leaving directory `/home/.cpan/build/XML-Parser-2.34-EqEXWP/Expat'
    make: *** [subdirs] Error 2
    cPCPAN/XML-Parser-2.34.tar.gz
    /usr/bin/make OTHERLDFLAGS=-L/usr/lib64 LDFLAGS=-L/usr/lib64 EXTRALIBDIR=/usr/lib64 OTHERLDFLAGS=-L/usr/lib64 LDFLAGS=-L/usr/lib64 EXTRALIBDIR=/usr/lib64 -- NOT OK
    CPAN: YAML loaded ok (v0.71)
    Running make install
    Make had returned bad status, install seems impossible
    perlmod--Install done

  6. #6
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,066

    Default Please submit a ticket

    Please submit a ticket with root log-in information, so that we may look at your server directly and resolve this problem for you. The link below will guide you through submitting a ticket.

    https://tickets.cpanel.net/submit/in...eqtype=tickets
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

  7. #7
    Member
    Join Date
    Sep 2003
    Posts
    158

    Default

    Quote Originally Posted by cPanelJared View Post
    If this still does not work, are there different binaries at /usr/bin/perl and /usr/local/bin/perl? One should be a symlink to the other; both should not be binary files. What is the output of the following commands?

    Code:
    # ls -alh /usr/bin/perl
    # ls -alh /usr/local/bin/perl
    No, the one is a symlink to the other:

    ls -alh /usr/bin/perl
    -rwxr-xr-x 2 root root 19K Sep 3 2009 /usr/bin/perl*
    ls -alh /usr/local/bin/perl
    lrwxrwxrwx 1 root root 13 Feb 26 20:50 /usr/local/bin/perl -> /usr/bin/perl

    /usr/bin/perl --version

    This is perl, v5.8.8 built for x86_64-linux-thread-multi

  8. #8
    Member
    Join Date
    Sep 2003
    Posts
    158

    Default

    Code:
    # perl -MCPAN -e shell
    cpan> install Bundle::CPAN
    cpan> reload index
    cpan> reload cpan
    cpan> quit
    # /scripts/checkperlmodules --full
    Even though there was not a problem with the symlink you mentioned above, I tried this just in case, but still:

    make[1]: *** [Expat.o] Error 1
    make[1]: Leaving directory `/home/.cpan/build/XML-Parser-2.34-wU9n_3/Expat'
    make: *** [subdirs] Error 2
    cPCPAN/XML-Parser-2.34.tar.gz
    /usr/bin/make OTHERLDFLAGS=-L/usr/lib64 LDFLAGS=-L/usr/lib64 EXTRALIBDIR=/usr/lib64 OTHERLDFLAGS=-L/usr/lib64 LDFLAGS=-L/usr/lib64 EXTRALIBDIR=/usr/lib64 -- NOT OK
    CPAN: YAML loaded ok (v0.71)


    Running make install
    Make had returned bad status, install seems impossible
    perlmod--Install done
    Notification => <removed email for forum post> via EMAIL [level => 1]
    Tested 141, 140 ok, 1 failed.
    Failed install: XML::Parser

  9. #9
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by boatdesign View Post
    Code:
    # perl -MCPAN -e shell
    cpan> install Bundle::CPAN
    cpan> reload index
    cpan> reload cpan
    cpan> quit
    # /scripts/checkperlmodules --full
    Even though there was not a problem with the symlink you mentioned above, I tried this just in case, but still:

    make[1]: *** [Expat.o] Error 1
    make[1]: Leaving directory `/home/.cpan/build/XML-Parser-2.34-wU9n_3/Expat'
    make: *** [subdirs] Error 2
    cPCPAN/XML-Parser-2.34.tar.gz
    /usr/bin/make OTHERLDFLAGS=-L/usr/lib64 LDFLAGS=-L/usr/lib64 EXTRALIBDIR=/usr/lib64 OTHERLDFLAGS=-L/usr/lib64 LDFLAGS=-L/usr/lib64 EXTRALIBDIR=/usr/lib64 -- NOT OK
    CPAN: YAML loaded ok (v0.71)


    Running make install
    Make had returned bad status, install seems impossible
    perlmod--Install done
    Notification => <removed email for forum post> via EMAIL [level => 1]
    Tested 141, 140 ok, 1 failed.
    Failed install: XML::Parser
    Please run the following command and let us know the output it displays:
    Code:
    # rpm -q expat expat-devel
    If the output indicates one or both packages are not installed, please use the following command to attempt an installation of both RPMs:
    Code:
    # /scripts/ensurerpm expat expat-devel
    Afterward, re-check to see if the packages are now installed:
    Code:
    # rpm -q expat expat-devel
    If they are now installed, as seen by the output including a specific version number for each RPM, then you may proceed to reattempt a forced installation of the missing Perl module.
    Code:
    # /scripts/perlinstaller --force XML::Parser
    If XML::Parser is installed successfully it will automatically include XML::Parser::Expat.

    If the above commands are now successful, I would proceed with the following as a precautionary measure:
    Code:
    # /scripts/checkperlmodules --force --full
    # /scripts/upcp --force

  10. #10
    Member
    Join Date
    Sep 2003
    Posts
    158

    Default

    Thanks very much Don,

    That seems to indicate that they are actually installed; I get a double listing for each but I suppose that is because it's a 64-bit OS and normal. So that didn't give me a lead that I can follow.

    Code:
    rpm -q expat expat-devel
    expat-1.95.8-8.3.el5_4.2
    expat-1.95.8-8.3.el5_4.2
    expat-devel-1.95.8-8.3.el5_4.2
    expat-devel-1.95.8-8.3.el5_4.2
    Code:
    /scripts/ensurerpm expat expat-devel
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    Excluding Packages in global exclude list
    Finished
    Setting up Install Process
    Package expat-1.95.8-8.3.el5_4.2.x86_64 already installed and latest version
    Package expat-1.95.8-8.3.el5_4.2.i386 already installed and latest version
    Package expat-devel-1.95.8-8.3.el5_4.2.x86_64 already installed and latest version
    Package expat-devel-1.95.8-8.3.el5_4.2.i386 already installed and latest version
    Last edited by boatdesign; 04-14-2010 at 10:39 PM.

  11. #11
    Member
    Join Date
    Sep 2003
    Posts
    158

    Default

    So still same as above (attached text file of full /scripts/perlinstaller --force XML::Parser output)
    Attached Files
    Last edited by boatdesign; 04-14-2010 at 10:39 PM.

  12. #12
    Member
    Join Date
    Sep 2003
    Posts
    158

    Default

    It seems to my tired eyes that during the make the problem begins at

    make[1]: Entering directory `/home/.cpan/build/XML-Parser-2.34-PMAk5W/Expat'
    cp Expat.pm ../blib/lib/XML/Parser/Expat.pm
    /usr/bin/perl /usr/lib/perl5/site_perl/5.8.8/ExtUtils/xsubpp -noprototypes -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap Expat.xs > Expat.xsc && mv Expat.xsc Expat.c
    gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"2.34\" -DXS_VERSION=\"2.34\" -fPIC "-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE" Expat.c
    gcc-64bit-hack: enabled
    Expat.xs:12:19: error: expat.h: No such file or directory
    Expat.xs:60: error: expected specifier-qualifier-list before 'XML_Parser'
    Expat.xs:111: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'nsdelim'
    Expat.xs:194: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ms'
    Expat.xs:197: error: expected ')' before 'parser'
    Expat.xs:249: error: expected ')' before '*' token
    Expat.xs:286: error: expected ')' before 'parser'
    Expat.xs: In function 'characterData':
    Expat.xs:470: error: 'CallbackVector' has no member named 'char_sv'
    Expat.xs: In function 'startElement':
    Expat.xs:482: error: 'CallbackVector' has no member named 'ns'
    Expat.xs:488: error: 'CallbackVector' has no member named 'st_serial'
    Expat.xs:490: error: 'CallbackVector' has no member named 'skip_until'
    Expat.xs:491: error: 'CallbackVector' has no member named 'st_serial'
    Expat.xs:491: error: 'CallbackVector' has no member named 'skip_until'
    Expat.xs:494: error: 'CallbackVector' has no member named 'skip_until'
    Expat.xs:498: error: 'CallbackVector' has no member named 'st_serial_stackptr'
    Expat.xs:498: error: 'CallbackVector' has no member named 'st_serial_stacksize'
    Expat.xs:499: error: 'CallbackVector' has no member named 'st_serial_stacksize'
    Expat.xs:501: error: 'CallbackVector' has no member named 'st_serial_stack'
    Expat.xs:501: warning: comparison is always false due to limited range of data type
    Expat.xs:501: error: 'CallbackVector' has no member named 'st_serial_stack'
    Expat.xs:502: error: 'CallbackVector' has no member named 'st_serial_stacksize'
    Expat.xs:505: error: 'CallbackVector' has no member named 'st_serial_stack'
    Expat.xs:505: error: 'CallbackVector' has no member named 'st_serial_stackptr'
    Expat.xs:505: error: 'CallbackVector' has no member named 'st_serial'
    Expat.xs:508: error: 'CallbackVector' has no member named 'nstab'
    Expat.xs:508: error: 'CallbackVector' has no member named 'nslst'
    Expat.xs:512: error: 'CallbackVector' has no member named 'start_sv'
    Expat.xs:512: error: 'CallbackVector' has no member named 'start_sv'
    Expat.xs:512: error: 'CallbackVector' has no member named 'start_sv'
    Expat.xs:512: error: 'CallbackVector' has no member named 'start_sv'
    Expat.xs:512: error: 'CallbackVector' has no member named 'start_sv'
    Expat.xs:512: error: 'CallbackVector' has no member named 'start_sv'
    Expat.xs:512: error: 'CallbackVector' has no member named 'start_sv'
    Expat.xs:512: error: 'CallbackVector' has no member named 'start_sv'
    Expat.xs:530: error: 'CallbackVector' has no member named 'nstab'
    Expat.xs:530: error: 'CallbackVector' has no member named 'nslst'
    Expat.xs:539: error: 'CallbackVector' has no member named 'start_sv'
    Expat.xs:545: error: 'CallbackVector' has no member named 'context'
    Expat.xs:547: error: 'CallbackVector' has no member named 'ns'
    Expat.xs:548: error: 'CallbackVector' has no member named 'new_prefix_list'
    Expat.xs:485: warning: unused variable 'pnslst'
    Expat.xs:484: warning: unused variable 'pnstab'
    Expat.xs:481: warning: unused variable 'pcontext'
    Expat.xs: In function 'endElement':
    Expat.xs:559: error: 'CallbackVector' has no member named 'context'
    Expat.xs:561: error: 'CallbackVector' has no member named 'st_serial_stackptr'
    Expat.xs:565: error: 'CallbackVector' has no member named 'skip_until'
    Expat.xs:565: error: 'CallbackVector' has no member named 'end_sv'
    Expat.xs:565: error: 'CallbackVector' has no member named 'end_sv'
    Expat.xs:565: error: 'CallbackVector' has no member named 'end_sv'
    Expat.xs:565: error: 'CallbackVector' has no member named 'end_sv'
    Expat.xs:565: error: 'CallbackVector' has no member named 'end_sv'
    Expat.xs:565: error: 'CallbackVector' has no member named 'end_sv'
    Expat.xs:565: error: 'CallbackVector' has no member named 'end_sv'
    Expat.xs:565: error: 'CallbackVector' has no member named 'end_sv'
    Expat.xs:575: error: 'CallbackVector' has no member named 'end_sv'
    Expat.xs:581: error: 'CallbackVector' has no member named 'st_serial_stackptr'
    Expat.xs: In function 'processingInstruction':
    Expat.xs:601: error: 'CallbackVector' has no member named 'proc_sv'
    Expat.xs: In function 'commenthandle':
    Expat.xs:621: error: 'CallbackVector' has no member named 'cmnt_sv'
    Expat.xs: In function 'startCdata':
    Expat.xs:633: error: 'CallbackVector' has no member named 'startcd_sv'
    Expat.xs:640: error: 'CallbackVector' has no member named 'startcd_sv'
    Expat.xs: In function 'endCdata':
    Expat.xs:653: error: 'CallbackVector' has no member named 'endcd_sv'
    Expat.xs:660: error: 'CallbackVector' has no member named 'endcd_sv'
    Expat.xs: At top level:
    Expat.xs:668: warning: type defaults to 'int' in declaration of 'XML_Char'
    Expat.xs:668: error: expected ';', ',' or ')' before '*' token
    Expat.xs:688: warning: type defaults to 'int' in declaration of 'XML_Char'
    Expat.xs:688: error: expected ';', ',' or ')' before '*' token
    Expat.xs: In function 'defaulthandle':
    Expat.xs:720: error: 'CallbackVector' has no member named 'dflt_sv'
    Expat.xs: At top level:
    Expat.xs:729: error: expected declaration specifiers or '...' before 'XML_Content'
    Expat.xs: In function 'elementDecl':
    Expat.xs:738: warning: implicit declaration of function 'generate_model'
    Expat.xs:738: error: 'model' undeclared (first use in this function)
    Expat.xs:738: error: (Each undeclared identifier is reported only once
    Expat.xs:738: error: for each function it appears in.)
    Expat.xs:738: warning: assignment makes pointer from integer without a cast
    Expat.xs:747: error: 'CallbackVector' has no member named 'eledcl_sv'
    Expat.xs: In function 'attributeDecl':
    Expat.xs:785: error: 'CallbackVector' has no member named 'attdcl_sv'
    Expat.xs: In function 'entityDecl':
    Expat.xs:818: error: 'CallbackVector' has no member named 'entdcl_sv'
    Expat.xs: In function 'doctypeStart':
    Expat.xs:844: error: 'CallbackVector' has no member named 'doctyp_sv'
    Expat.xs: In function 'doctypeEnd':


    Code:
     locate expat.h
    /home/cpeasyapache/src/httpd-2.2.14/srclib/apr-util/xml/expat/lib/expat.h
    /home/cpeasyapache/src/httpd-2.2.14/srclib/apr-util/xml/expat/lib/expat.h.in
    /usr/local/apache/include/expat.h
    /usr/local/apache.backup/include/expat.h
    /usr/local/cpanel/3rdparty/include/php/ext/xml/expat/expat.h
    /usr/share/doc/python-docs-2.4.3/html/lib/module-xml.parsers.expat.html
    
    rpm -qa expat-devel
    expat-devel-1.95.8-8.3.el5_4.2
    expat-devel-1.95.8-8.3.el5_4.2

  13. #13
    Member
    Join Date
    Sep 2003
    Posts
    158

    Default

    Did a simple
    Code:
    yum remove expat-devel
    yum install expat-devel
    There were no dependencies.

    Once this was done I have
    /usr/include/expat.h

    And now XML:Parser installs ok.

    Code:
    Tested 141, 141 ok, 0 failed.

  14. #14
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by boatdesign View Post
    Did a simple
    Code:
    yum remove expat-devel
    yum install expat-devel
    There were no dependencies.

    Once this was done I have
    /usr/include/expat.h

    And now XML:Parser installs ok.

    Code:
    Tested 141, 141 ok, 0 failed.
    Thank you for sharing the resolution detail. As an added tip, on the latest releases of RHEL5 and CentOS5 the removal and re-installation of RPMs may also be performed using "yum reinstall" such as in the following example:
    Code:
    # yum reinstall expat-devel
    Older versions of YUM may not have the "reinstall" option, such as in CentOS4, but when "yum reinstall" is available it can help to shorten and simplify the steps involved and further speed a resolution.

    If in the case the specific RPM name is not yet known, one of the following examples can be used to help locate what RPM software package(s) provides the required files:
    Code:
    # yum provides "*/expat.h"
    # yum whatprovides "*/expat.h"

Similar Threads & Tags
Similar threads

  1. Replies: 0
    Last Post: 08-23-2011, 07:55 AM
  2. Replies: 6
    Last Post: 01-26-2009, 08:52 AM
  3. [checkperlmodules] The perl module XXXXX could not be installed.
    By Jonno in forum cPanel and WHM Discussions
    Replies: 24
    Last Post: 08-31-2007, 07:39 PM
  4. [checkperlmodules] The perl module XML::LibXML could not be installed.
    By boatdesign in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 08-17-2007, 10:41 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube