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!

Perl can't find an installed module

Discussion in 'General Discussion' started by User8472, Feb 26, 2019.

  1. User8472

    User8472 Member

    Joined:
    Apr 24, 2018
    Messages:
    7
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    US
    cPanel Access Level:
    Root Administrator
    I've got a script that uses the Captcha::reCAPTCHA::V2 module, but Perl can not find the module, even though it's installed in the system. See the attached picture.

    But when I try to run the script I get:

    Can't locate Captcha/reCAPTCHA/V2.pm in @INC (@INC contains: /home/USERNAME/perl5/lib/perl5 /home/USERNAME/perl5/lib/perl5/x86_64-linux-thread-multi /home/USERNAME/perl/usr/local/lib64/perl5 /home/USERNAME/perl/usr/local/share/perl5 /home/USERNAME/perl/usr/lib64/perl5/vendor_perl /home/USERNAME/perl/usr/share/perl5/vendor_perl /home/USERNAME/perl/usr/lib64/perl5 /home/USERNAME/perl/usr/share/perl5 /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./SCRIPTNAME.cgi line 3.
    BEGIN failed--compilation aborted at ./SCRIPTNAME.cgi line 3.


    Replaced the actual username with USERNAME.
    Replaced the actual script name with SCRIPTNAME

    Tried using both:
    #!/usr/bin/perlml

    and

    #!/usr/bin/perl
    use cPanelUserConfig;

    Both have the same results, perl can't find the module.

    May or may not be related to my other thread. Referenced for completeness.
    New Thread - Precondition Failed

    Any help is appreciated.

    Thanks in advance!
     
  2. User8472

    User8472 Member

    Joined:
    Apr 24, 2018
    Messages:
    7
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    US
    cPanel Access Level:
    Root Administrator
    Problem has been resolved, went away after a reboot. Thank you.
     
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,008
    Likes Received:
    2,123
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @User8472,

    I'm glad to see the issue is no longer occurring. Thank you for sharing the outcome. I'll take a look at your other thread and respond shortly.

    Thank you.
     
    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