Execution of /scripts/upcp aborted due to compilation errors.

stasd

Active Member
Sep 22, 2003
33
0
156
USA
# /scripts/upcp
syntax error at /scripts/upcp line 46, near "system"
Execution of /scripts/upcp aborted due to compilation errors.


HOWTO FIX THAT!!!!
 

stasd

Active Member
Sep 22, 2003
33
0
156
USA
Don't think so

# /scripts/perlinstaller --force
Method: Perl Expect
Testing connection speed...(this could take a while)....Done
Three usable mirrors located
Mirror Check passed for cpan.erlbaum.net
commit: wrote /usr/lib/perl5/5.8.4/CPAN/Config.pm
perlmod--Install done
[email protected] [~]# /scripts/upcp --force
syntax error at /scripts/upcp line 46, near "system"
Execution of /scripts/upcp aborted due to compilation errors.
 

Bruce

Well-Known Member
Oct 4, 2001
146
0
316
Got the same problem here
Cannot Update cpanel anymore and STILL tring to fix the last problem (Cwd object version 3.09 does not match $Cwd::VERSION 3.06) with Exim !
 

stasd

Active Member
Sep 22, 2003
33
0
156
USA
IT'S NOT FUN NOW!

Found in old upcp

line 45-51

if ($system !~ /bsd/i && ! -e "/var/named") { mkdir("/var/named",0755); system("/scripts/fixndc"); }
if (! -e "/etc/wwwacct.conf") { system("/scripts/mkwwwacctconf"); }
if (-e "/sbin/chkconfig") {
system("/sbin/chkconfig --add ipaliases 2>/dev/null");
system("/sbin/chkconfig --level 35 ipaliases on >/dev/null 2>/dev/null");
system("/sbin/chkconfig ipaliases 35 >/dev/null 2>/dev/null");
}


new one, line 45-55

print "Updating /scripts ...\n"
system("/scripts/updatenow");
print "Done updating /scripts\n";

if ($system !~ /bsd/i && ! -e "/var/named") { mkdir("/var/named",0755); system("/scripts/fixndc"); }
if (! -e "/etc/wwwacct.conf") { system("/scripts/mkwwwacctconf"); }
if (-e "/sbin/chkconfig") {
system("/sbin/chkconfig --add ipaliases 2>/dev/null");
system("/sbin/chkconfig --level 35 ipaliases on >/dev/null 2>/dev/null");
system("/sbin/chkconfig ipaliases 35 >/dev/null 2>/dev/null");
}

What I need to change?