Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Nov 2004
    Posts
    30
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default Can't locate cwd.pm cPanel 11

    Hi Guys,

    We've a problem to update cpanel and machine can't run any cpanel script. When we try to update, we got error like this:

    root@machine [/scripts]# ./upcp
    Can't locate Cwd.pm in @INC (@INC contains: /scripts /usr/lib/perl5/5.8.6/i686-linux /usr/lib/perl5/5.8.6 /usr/lib/perl5/site_perl/5.8.6/i686-linux /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at /scripts/cPScript/cPanelFunctions.pm line 11.
    BEGIN failed--compilation aborted at /scripts/cPScript/cPanelFunctions.pm line 11.
    Compilation failed in require at ./upcp line 16.
    BEGIN failed--compilation aborted at ./upcp line 16.

    We can't run any cpanel script, this is very critical, some one can help us?

    Here, I attach antoher output when i restart cpanel service:
    root@machine [/scripts]# service cpanel restart
    Stopping cPanel services: [ OK ]
    Stopping cPanel dav services: [ OK ]
    Stopping cPanel brute force detector services: [ OK ]
    Stopping pop3 services: [ OK ]
    Stopping cPanel log services: [FAILED]
    Stopping cPanel Chat services: [FAILED]
    Stopping Melange Chat services: [FAILED]
    Stopping InterChange services: [FAILED]
    Stopping cPanel ssl services: [ OK ]

    Stopping mailman services: Shutting down Mailman's master qrunner

    Starting eximstats: Can't locate Cwd.pm in @INC (@INC contains: /usr/local/cpanel /usr/lib/perl5/5.8.6/i686-linux /usr/lib/perl5/5.8.6 /usr/lib/perl5/site_perl/5.8.6/i686-linux /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at /usr/local/cpanel/Cpanel/cPanelFunctions.pm line 11.
    BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/cPanelFunctions.pm line 11.
    Compilation failed in require at /usr/local/cpanel/bin/starteximstats line 9.
    BEGIN failed--compilation aborted at /usr/local/cpanel/bin/starteximstats line 9.
    [FAILED]
    Starting cPanel services: [ OK ]
    Starting cPanel brute force detector services: [ OK ]
    Starting cPanel dav services: [FAILED]
    Starting cPanel Log services: Can't locate Cwd.pm in @INC (@INC contains: /usr/local/cpanel /usr/local/cpanel/3rdparty/lib/perl /usr/lib/perl5/5.8.6/i686-linux /usr/lib/perl5/5.8.6 /usr/lib/perl5/site_perl/5.8.6/i686-linux /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at /usr/local/cpanel/cpanellogd line 11.
    BEGIN failed--compilation aborted at /usr/local/cpanel/cpanellogd line 11.
    [FAILED]
    Starting pop3 services: [ OK ]
    Starting cPanel Chat services:
    Starting Melange Chat services:
    Starting cPanel ssl services: Can't locate Cwd.pm in @INC (@INC contains: /usr/local/cpanel /usr/lib/perl5/5.8.6/i686-linux /usr/lib/perl5/5.8.6 /usr/lib/perl5/site_perl/5.8.6/i686-linux /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at /usr/local/cpanel/Cpanel/cPanelFunctions.pm line 11.
    BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/cPanelFunctions.pm line 11.
    Compilation failed in require at /usr/local/cpanel/etc/init/startstunnel line 11.
    BEGIN failed--compilation aborted at /usr/local/cpanel/etc/init/startstunnel line 11.
    [FAILED]
    Starting mailman services: Starting Mailman's master qrunner.
    When i try force upcp ( ./upcp --force ) that shows this:

    root@host-20-150-27-200 [/scripts]# ./upcp --force
    Can't locate Cwd.pm in @INC (@INC contains: /scripts /usr/lib/perl5/5.8.6/i686-linux /usr/lib/perl5/5.8.6 /usr/lib/perl5/site_perl/5.8.6/i686-linux /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at /scripts/cPScript/cPanelFunctions.pm line 11.
    BEGIN failed--compilation aborted at /scripts/cPScript/cPanelFunctions.pm line 11.
    Compilation failed in require at ./upcp line 16.
    BEGIN failed--compilation aborted at ./upcp line 16.
    When i force perlinstaller pathtools ( /scripts/perlinstaller --force PathTools ):
    root@host-20-150-27-200 [/scripts]# /scripts/perlinstaller --force Pathtools
    Can't locate Cwd.pm in @INC (@INC contains: /scripts /usr/lib/perl5/5.8.6/i686-linux /usr/lib/perl5/5.8.6 /usr/lib/perl5/site_perl/5.8.6/i686-linux /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at /usr/lib/perl5/5.8.6/CPAN.pm line 14.
    BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.6/CPAN.pm line 14.
    Compilation failed in require at cPScript/cPCPAN.pm line 10.
    BEGIN failed--compilation aborted at cPScript/cPCPAN.pm line 10.
    Compilation failed in require at /scripts/perlinstaller line 8.
    BEGIN failed--compilation aborted at /scripts/perlinstaller line 8.
    All show the same error.

    We'll very thankful if someone can help us... Please, guys!.

    Cheers!
    Last edited by rzderich; 05-23-2007 at 12:38 PM.
    Roy A. Zderich

    ADX Networks (Formerly Cyberia Internet)
    http://www.adx.cl

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Is /scripts/checkperlmodules also malfunctioning?

  3. #3
    Member
    Join Date
    Nov 2004
    Posts
    30
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Thanks, but...

    root@machine [/usr/local/cpanel/bin]# ./checkperlmodules
    Can't locate Cwd.pm in @INC (@INC contains: /usr/local/cpanel /usr/lib/perl5/5.8.6/i686-linux /usr/lib/perl5/5.8.6 /usr/lib/perl5/site_perl/5.8.6/i686-linux /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at /usr/lib/perl5/5.8.6/CPAN.pm line 14.
    BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.6/CPAN.pm line 14.
    Compilation failed in require at /usr/local/cpanel/Cpanel/cPCPAN.pm line 10.
    BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/cPCPAN.pm line 10.
    Compilation failed in require at ./checkperlmodules line 8.
    BEGIN failed--compilation aborted at ./checkperlmodules line 8.
    Regards!
    Roy A. Zderich

    ADX Networks (Formerly Cyberia Internet)
    http://www.adx.cl

  4. #4
    Member
    Join Date
    Nov 2004
    Posts
    30
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default Solution

    Hi Guys,

    We have the solution!!!!
    There are a Cwd.pm file under cpanel install directory, something like:
    (Figure1): /home/cpins/installd/perl586installer/perl-5.8.6/lib/

    Then, you must copy Cwd.pm (figure1) to /usr/lib/perl5/x.x.x(version)/ixxx-linux

    (Without this steep, you'll can't fix the perl problem, or run cpanel perl scripts)

    and download the new perl version:
    wget http://layer1.cpanel.net/perl588installer.tar.gz
    then:
    tar -xvzf perl588installer.tar.gz
    cd ./perl588installer
    ./install

    Next Step:

    Under /scripts/, run:
    ./upcp --force
    for update cpanel =)

    All right!

    Thx Anyway!

    Regards!
    Roy A. Zderich

    ADX Networks (Formerly Cyberia Internet)
    http://www.adx.cl

  5. #5
    Member
    Join Date
    Apr 2003
    Location
    Denver, CO
    Posts
    294

    Default

    Or you could have simply used CPAN to install the module.

Similar Threads & Tags
Similar threads

  1. Installation Problems - Can't locate Cwd.pm
    By HelloAdam in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 07-14-2007, 09:49 AM
  2. Cwd object version 3.09 does not match $Cwd::VERSION 3.10.
    By ttremain in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 08-31-2005, 10:32 AM
  3. Cwd object version 3.08 does not match $Cwd::VERSION 3.06. (BUG in PRO !!BETA!!)
    By randyvalpobb in forum cPanel and WHM Discussions
    Replies: 232
    Last Post: 08-19-2005, 08:25 AM
  4. Cwd object version 3.06 does not match $Cwd::VERSION 3.09
    By RedFutura in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-02-2005, 01:54 PM
  5. Cwd object version 3.06 does not match $Cwd::VERSION 3.09 in outlook
    By ad1978_india in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-20-2005, 03:27 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube