Subject: | Does not install when '.' is not in @INC |
Perl 5.25.7 can be configured to not include '.' in @INC. Under this configuration, this module does not installed if M::I is not installed.
twin% perl Makefile.PL
Can't locate inc/Module/Install/DSL.pm in @INC (you may need to install the inc::Module::Install::DSL module) (@INC contains: /home/ollisg/perl5/perlbrew/perls/perl-5.25.7tci/lib/site_perl/5.25.7/x86_64-linux-thread-multi /home/ollisg/perl5/perlbrew/perls/perl-5.25.7tci/lib/site_perl/5.25.7 /home/ollisg/perl5/perlbrew/perls/perl-5.25.7tci/lib/5.25.7/x86_64-linux-thread-multi /home/ollisg/perl5/perlbrew/perls/perl-5.25.7tci/lib/5.25.7) at Makefile.PL line 1.
BEGIN failed--compilation aborted at Makefile.PL line 1.
I am attaching a patch which will add . to @INC if it is not already there.
Subject: | inc.patch |
diff --git a/Makefile.PL b/Makefile.PL
index 14a1fa7..9ac45be 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -1,3 +1,4 @@
+use if $INC[-1] ne '.', 'lib', '.';
use inc::Module::Install::DSL 1.06;
all_from lib/Class/Inspector.pm