Perl can't find an installed module

User8472

Member
Apr 24, 2018
7
1
3
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!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
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.