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.

perl modules missing in /scripts/cPScript

Discussion in 'General Discussion' started by BlueZebra, Dec 8, 2007.

  1. BlueZebra

    BlueZebra Well-Known Member

    Joined:
    Apr 27, 2006
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    I have a server with no .pm files in the directory /scripts/cPScript which is preventing me from doing any updates.

    ----------------------------------------------o
    [/scripts/cPScript]# /scripts/upcp --force
    Can't locate cPScript/HttpRequest.pm in @INC (@INC contains: /scripts /usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8 /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/5.6.2 /usr/lib/perl5/site_perl .) at /scripts/upcp line 14.
    BEGIN failed--compilation aborted at /scripts/upcp line 14.
    ----------------------------------------------o

    I could find the missing files like HttpRequest.pm, Config.pm, ProcessCheck.pm, etc.. in the directory /usr/local/cpanel/Cpanel/. Are these files the same? will the updates work if I replace the missing .pm files in /scripts/cPScript with those from /usr/local/cpanel/Cpanel/

    Regards,
     
  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
    Have you tried running /scripts/checkperlmodules yet?
     
  3. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Those Modules should be the same. Copy, or symlink, them to /scripts/cPScript

    On the other hand, it is very odd to be missing the modules in /scripts/cPScript, any clue as to how that occurred?
     
  4. BlueZebra

    BlueZebra Well-Known Member

    Joined:
    Apr 27, 2006
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    I managed it by reinstalling the Perl 5.8.8 manually and then run the updates. All works fine now :)
    Thanks for your suggestions
     
Loading...

Share This Page