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.

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:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  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:
    569
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Glad to hear it. Thank you for updating this thread.
     
Loading...

Share This Page