I'm running tests which are in a ./t subdirectory. Tests are failing with "Can't locate so-and-so in @INC", despite the fact that the missing module is in the first directory named in the dump of @INC. I have $PERL5LIB set. Thus:
# echo $PERL5LIB /home/henry/gitr/MAS/lib # prove ./t/8bit.t ./t/8bit.t .. Can't locate MAS::Global in @INC (@INC entries checked: +/home/henry/gitr/MAS/lib /etc/perl (... others omitted) # find /home/henry/gitr/MAS/lib -name Global.pm /home/henry/gitr/MAS/lib/MAS/Global.pm # It's in $INC[0] # perl -c /home/henry/gitr/MAS/lib/MAS/Global.pm /home/henry/gitr/MAS/lib/MAS/Global.pm syntax OK
Perl itself can find it:
# perldoc -l MAS::Global /home/henry/gitr/MAS/lib/MAS/Global.pm
Compiler and OS details
# perl -v This is perl 5, version 38, subversion 2 (v5.38.2) built for x86_64-li +nux-gnu-thread-multi (with 51 registered patches, see perl -V for more detail) # cat /etc/os-release NAME="Linux Mint" VERSION="22.2 (Zara)" ID=linuxmint ID_LIKE="ubuntu debian" ... etc
I'm fairly sure there's a sensible explanation for this baffling behaviour: would someone either diagnose my error, or suggest some way by which I can home in on what it is?
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |