Subject: | Automatic prereq installation does not work |
On my smokers I see build failures like this:
...
Output from '/usr/bin/perl Makefile.PL':
Can't locate WordNet/Similarity/ICFinder.pm in @INC (you may need to install the WordNet::Similarity::ICFinder module) (@INC contains: /var/tmp/cpansmoker-1023/2019050220/CPAN-Reporter-lib-7kEj /home/cpansand/.local/share/.cpan/build/2019050220/WordNet-QueryData-1.49-0/blib/arch /home/cpansand/.local/share/.cpan/build/2019050220/WordNet-QueryData-1.49-0/blib/lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/x86_64-linux-gnu/perl5/5.28 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/local/lib/x86_64-linux-gnu/perl/5.28.0 /usr/local/share/perl/5.28.0 /usr/lib/x86_64-linux-gnu/perl-base .) at Makefile.PL line 7.
BEGIN failed--compilation aborted at Makefile.PL line 7.
...
Looking at Makefile.PL it seems that the extra check for the two dependencies is causing this problem --- best is to remove this check completely. The PREREQ_PM declaration is enough, so installers like cpanminus or CPAN.pm automatically install the dependencies.