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.

Can't locate Template.pm

Discussion in 'General Discussion' started by JoehBloeh, Jul 17, 2007.

  1. JoehBloeh

    JoehBloeh Member

    Joined:
    Oct 22, 2003
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Hello all,

    I'm trying to transfer accounts, but it can't complete the backup. When I run a cpbackup --force, I get this message:

    Code:
    Can't locate Template.pm in @INC (@INC contains: /scripts /usr/local/cpanel /usr/lib/perl5/5.8.1/i686-linux /usr/lib/perl5/5.8.1 /usr/lib/perl5/site_perl/5.8.1/i686-linux /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at /scripts/cPScript/Template.pm line 10.
    BEGIN failed--compilation aborted at /scripts/cPScript/Template.pm line 10.
    Compilation failed in require at /scripts/cPScript/DnsUtils.pm line 17.
    BEGIN failed--compilation aborted at /scripts/cPScript/DnsUtils.pm line 17.
    Compilation failed in require at /scripts/pkgacct line 15.
    BEGIN failed--compilation aborted at /scripts/pkgacct line 15.
    
    I did some forum searching, and it seems like this was the general consensus to fix the issue:

    Code:
    /usr/local/cpanel/bin/checkperlmodules --bootstrap
    /usr/local/cpanel/bin/checkperlmodules --full
    /usr/local/cpanel/bin/checkperlmodules
    /scripts/upcp --force
    However, I've tried this several times, and it's not making any progress. I've run each of those at least 4 times, and it's still failing.

    Please help! I need to switch providers before this weekend, and I haven't had a good backup in a month!
     
  2. BlueZebra

    BlueZebra Well-Known Member

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

    I got this same problem while doing a cpbackup
    # /scripts/cpbackup --force

    Can't locate Template.pm in @INC (@INC contains: /scripts /usr/local/cpanel /usr/lib/perl5/5.8.1/i686-linux /usr/lib/perl5/5.8.1 /usr/lib/perl5/site_perl/5.8.1/i686-linux /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at /scripts/cPScript/Template.pm line 10.
    BEGIN failed--compilation aborted at /scripts/cPScript/Template.pm line 10.
    Compilation failed in require at /scripts/cPScript/DnsUtils.pm line 17.
    BEGIN failed--compilation aborted at /scripts/cPScript/DnsUtils.pm line 17.
    Compilation failed in require at /scripts/pkgacct line 15.
    BEGIN failed--compilation aborted at /scripts/pkgacct line 15.
     
  3. 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
    I'd recommend submitting a support ticket so our technicians can determine what is causing this to happen.
     
  4. cPDan

    cPDan cPanel Staff
    Staff Member

    Joined:
    Mar 9, 2004
    Messages:
    711
    Likes Received:
    4
    Trophy Points:
    18
    Code:
    Can't locate Template.pm in @INC
    Just install the missing module:

    Code:
    cpan Template
     
Loading...

Share This Page