perl modules missing in /scripts/cPScript

BlueZebra

Well-Known Member
Apr 27, 2006
48
0
156
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,
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
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,
Have you tried running /scripts/checkperlmodules yet?
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
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,
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?
 

BlueZebra

Well-Known Member
Apr 27, 2006
48
0
156
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