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!

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

Discussion in 'General Discussion' started by stasd, Jul 19, 2005.

  1. stasd

    stasd Active Member

    Joined:
    Sep 22, 2003
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    USA
    # /scripts/upcp
    syntax error at /scripts/upcp line 46, near "system"
    Execution of /scripts/upcp aborted due to compilation errors.


    HOWTO FIX THAT!!!!
     
  2. gpan

    gpan Member
    PartnerNOC

    Joined:
    Feb 6, 2003
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    151
    Is perl broken on your system?.
     
  3. stasd

    stasd Active Member

    Joined:
    Sep 22, 2003
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    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
    root@epic [~]# /scripts/upcp --force
    syntax error at /scripts/upcp line 46, near "system"
    Execution of /scripts/upcp aborted due to compilation errors.
     
  4. stasd

    stasd Active Member

    Joined:
    Sep 22, 2003
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    USA
  5. Bruce

    Bruce Well-Known Member

    Joined:
    Oct 4, 2001
    Messages:
    147
    Likes Received:
    0
    Trophy Points:
    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 !
     
  6. stasd

    stasd Active Member

    Joined:
    Sep 22, 2003
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    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?
     
  7. stasd

    stasd Active Member

    Joined:
    Sep 22, 2003
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    USA
    Line 45 add ";"

    Cpanel I LOVE YOU SO MUCH!!!
     
  8. kris1351

    kris1351 Well-Known Member

    Joined:
    Apr 18, 2003
    Messages:
    963
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Lewisville, Tx
    Remove the line before and after 46 to kill the not needed /scripts/updatenow.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. apogee

    apogee Well-Known Member

    Joined:
    Nov 8, 2004
    Messages:
    107
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    Europe
    cPanel Access Level:
    DataCenter Provider
    simply add a ";" at line 46, that fix the problem for me and update rans
     
  10. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. stasd

    stasd Active Member

    Joined:
    Sep 22, 2003
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    USA
    Thanks chirpy
     
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