Apr 11, 2018, 4:13 PM
Post #1 of 4
Problem with Log::Messages - Can't locate mylib.pl in @INC
I am trying to use Log::Messages to add some logging to one of my programs (we can't use the Log4j module), but when I try to use it I am getting an error:
-bash-4.1$ perl logmessage1.pl
Can't locate mylib.pl in @INC (@INC contains: /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 /usr/share/perl5/Module/Load.pm line 21, <GEN0> line 19.
BEGIN failed--compilation aborted at logmessage1.pl line 5.
That is with a simple program that does almost nothing:
use Log::Message private => 0, config => './cf_file';
The above was running Perl v5.10.1 on Redhat, but I also tried on Windows 10, with Perl v5.24.1 and got:
Can't locate mylib.pl in @INC (@INC contains: C:/Perl64/site/lib C:/Perl64/lib .) at C:/Perl64/lib/Module/Load.pm line 71, <GEN0> line 19.
BEGIN failed--compilation aborted at logtest1.pl line 5.
I've searched the machine and I cannot find a "mylib.pl" anywhere.
Does anyone know how to get this working?