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!

error "Can't locate Cpanel/Version.pm in"

Discussion in 'cPanel Developers' started by drako, Dec 19, 2014.

  1. drako

    drako Member

    Joined:
    Dec 30, 2013
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hello,

    i have a bash script that calls a perl file.

    i get the error below

    Code:
    Can't locate Cpanel/Version.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/x86_64-linux 
    
    /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux 
    
    /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at ./install.pl line 3.
    BEGIN failed--compilation aborted at ./install.pl line 3.
    
    The file install.pl

    Code:
    #!/usr/local/cpanel/3rdparty/bin/perl
    
    use Cpanel::Version ();
    
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,367
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. drako

    drako Member

    Joined:
    Dec 30, 2013
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hello Michael,

    i am sorry i am starting new with both perl and whm plugin development.
    i read through the link you sent but still am stuck.

    i have whm version WHM 11.42.1 (build 13), am i pointing to the wrong perl in my file? i did change it to /usr/bin/perl but it didn't work either.

    i am developing a WHM Plugin.

    Appreciate your support.
     
  4. drako

    drako Member

    Joined:
    Dec 30, 2013
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Dear Michael,
    i managed to get it solved through the link you sent.

    Many Thanks
     
  5. cPanelPeter

    cPanelPeter Technical Analyst III
    Staff Member

    Joined:
    Sep 23, 2013
    Messages:
    575
    Likes Received:
    20
    Trophy Points:
    93
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Glad to hear it. Thank you for updating this thread.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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