Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    156
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 rzderich, May 23, 2007
    Last edited: May 23, 2007
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,216
    Likes Received:
    10
    Trophy Points:
    313
    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:
    156
    cPanel Access Level:
    DataCenter Provider
    Thanks, but...

    Regards!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. rzderich

    rzderich Active Member

    Joined:
    Nov 20, 2004
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    156
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. jrehmer

    jrehmer Well-Known Member

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

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice