Subject: | System perl used in tests |
On my smoker systems I see test failures like this one:
...
Can't locate Readonly.pm in @INC (you may need to install the Readonly module) (@INC contains: blib blib/arch lib $PERL5LIB /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at lib/Image/Sane/Device.pm line 8.
BEGIN failed--compilation aborted at lib/Image/Sane/Device.pm line 8.
Compilation failed in require at lib/Image/Sane.pm line 6.
BEGIN failed--compilation aborted at lib/Image/Sane.pm line 6.
Compilation failed in require at examples/scanimage-perl line 6.
BEGIN failed--compilation aborted at examples/scanimage-perl line 6.
identify: improper image header `out.pnm' @ error/pnm.c/ReadPNMImage/282.
... (etc) ...
The contents of the @INC path indicate that the system perl is used here, not the perl current used to build the distribution. In most cases, a possible fix is to use $^X when calling scripts (e.g. system($^X, $scriptname, @scriptargs) or so).