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!
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!