Perl can't find an installed module
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.
Any help is appreciated.
Thanks in advance!
-
Problem has been resolved, went away after a reboot. Thank you. 0 -
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. 0
Please sign in to leave a comment.
Comments
2 comments