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.

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

Discussion in 'General Discussion' started by boatdesign, Apr 14, 2010.

  1. boatdesign

    boatdesign Well-Known Member

    Joined:
    Sep 13, 2003
    Messages:
    158
    Likes Received:
    0
    Trophy Points:
    16
    On Centos 5 64-bit, as of tonight's whm cron run I'm getting:
    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. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    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.
     
  3. 9xlinux

    9xlinux Well-Known Member

    Joined:
    Dec 20, 2009
    Messages:
    185
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    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
     
  4. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    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/index.cgi?reqtype=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.
     
  5. boatdesign

    boatdesign Well-Known Member

    Joined:
    Sep 13, 2003
    Messages:
    158
    Likes Received:
    0
    Trophy Points:
    16
    Yes, the scripts return the same error:

     
  6. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
  7. boatdesign

    boatdesign Well-Known Member

    Joined:
    Sep 13, 2003
    Messages:
    158
    Likes Received:
    0
    Trophy Points:
    16
    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. boatdesign

    boatdesign Well-Known Member

    Joined:
    Sep 13, 2003
    Messages:
    158
    Likes Received:
    0
    Trophy Points:
    16
    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. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    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. boatdesign

    boatdesign Well-Known Member

    Joined:
    Sep 13, 2003
    Messages:
    158
    Likes Received:
    0
    Trophy Points:
    16
    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
     
    #10 boatdesign, Apr 14, 2010
    Last edited: Apr 14, 2010
  11. boatdesign

    boatdesign Well-Known Member

    Joined:
    Sep 13, 2003
    Messages:
    158
    Likes Received:
    0
    Trophy Points:
    16
    So still same as above (attached text file of full /scripts/perlinstaller --force XML::Parser output)
     

    Attached Files:

    #11 boatdesign, Apr 14, 2010
    Last edited: Apr 14, 2010
  12. boatdesign

    boatdesign Well-Known Member

    Joined:
    Sep 13, 2003
    Messages:
    158
    Likes Received:
    0
    Trophy Points:
    16
    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. boatdesign

    boatdesign Well-Known Member

    Joined:
    Sep 13, 2003
    Messages:
    158
    Likes Received:
    0
    Trophy Points:
    16
    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. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    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"
     
Loading...

Share This Page