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.

Can't locate cwd.pm cPanel 11

Discussion in 'General Discussion' started by rzderich, May 23, 2007.

  1. rzderich

    rzderich Active Member

    Joined:
    Nov 20, 2004
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    DataCenter Provider
    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:
    When i try force upcp ( ./upcp --force ) that shows this:

    When i force perlinstaller pathtools ( /scripts/perlinstaller --force PathTools ):
    All show the same error.

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

    Cheers!
     
    #1 rzderich, May 23, 2007
    Last edited: May 23, 2007
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Is /scripts/checkperlmodules also malfunctioning?
     
  3. rzderich

    rzderich Active Member

    Joined:
    Nov 20, 2004
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    DataCenter Provider
    Thanks, but...

    Regards!
     
  4. rzderich

    rzderich Active Member

    Joined:
    Nov 20, 2004
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    DataCenter Provider
    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!
     
  5. jrehmer

    jrehmer Well-Known Member

    Joined:
    Apr 10, 2003
    Messages:
    287
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Denver, CO
    Or you could have simply used CPAN to install the module.
     
Loading...

Share This Page