Subject: | Can't locate inc/Module/Install.pm in @INC |
With newer perls, and if Module::Install is not yet installed, installation fails:
...
Output from '/opt/perl-5.26.0/bin/perl Makefile.PL INSTALLDIRS=site':
Can't locate inc/Module/Install.pm in @INC (you may need to install the inc::Module::Install module) (@INC contains: /var/tmp/cpansmoker-11577/2019061212/CPAN-Reporter-lib-j58s /home/slaven.rezic/.cpan/build/2019061212/IO-Prompt-0.997004-5/blib/arch /home/slaven.rezic/.cpan/build/2019061212/IO-Prompt-0.997004-5/blib/lib /home/slaven.rezic/.cpan/build/2019061212/Getopt-Alt-v0.5.3-5/blib/arch /home/slaven.rezic/.cpan/build/2019061212/Getopt-Alt-v0.5.3-5/blib/lib /home/slaven.rezic/.cpan/build/2019061212/Tie-Handle-Scalar-0.1-5/blib/arch /home/slaven.rezic/.cpan/build/2019061212/Tie-Handle-Scalar-0.1-5/blib/lib /opt/perl-5.26.0/lib/site_perl/5.26.0/x86_64-linux /opt/perl-5.26.0/lib/site_perl/5.26.0 /opt/perl-5.26.0/lib/5.26.0/x86_64-linux /opt/perl-5.26.0/lib/5.26.0) at Makefile.PL line 1.
BEGIN failed--compilation aborted at Makefile.PL line 1.
...
In newer perls the dot may be missing in @INC. So I see two possibilities to fix the problem:
* add something like
use lib ".";
to the top of Makefile.PL
* don't bundle Module::Install at all, but declare a configure_requires dependency on it (not sure if this could work though).