Subject: | testing with the wrong perl |
Today I saw a test failing all over and the disgnostic message was
# got: 'Can't locate Moose.pm in @INC (@INC contains: t/lib
blib lib /home/sand/.cpan/build/Test-A8N-0.03-RvsP5Y/blib/lib
/home/sand/.cpan/build/Test-A8N-0.03-RvsP5Y/blib/arch
/home/sand/.cpan/build/Encode-IBM-0.11-is6Sia/blib/arch
/home/sand/.cpan/build/Encode-IBM-0.11-is6Sia/blib/lib /etc/perl
/usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8
/usr/local/lib/site_perl /usr/local/lib/perl/5.8.7
/usr/local/share/perl/5.8.7 /usr/local/lib/perl/5.8.4
/usr/local/share/perl/5.8.4 .) at lib/Test/A8N.pm line 6.
# BEGIN failed--compilation aborted at lib/Test/A8N.pm line 6.
#
This message did not come from the perl I was running. The perl I was
running had Moose installed (of course).
So I suspect there is some place in the test mechanism that calls "perl"
and takes the first in the $PATH instead of calling the perl I'm using
(which you usually get with $^X or Probe::Perl)
Thanks,