Subject: | Gearman::XS installation fails because of the missing Module::Install dependency |
Installing Gearman::XS fails:
$ cpanm -L local/ Gearman::XS
--> Working on Gearman::XS
Fetching http://search.cpan.org/CPAN/authors/id/K/KR/KROW/Gearman-XS-0.15.tar.gz ... OK
==> Found dependencies: ExtUtils::MakeMaker
--> Working on ExtUtils::MakeMaker
Fetching http://search.cpan.org/CPAN/authors/id/B/BI/BINGOS/ExtUtils-MakeMaker-6.80.tar.gz ... OK
Configuring ExtUtils-MakeMaker-6.80 ... OK
Building and testing ExtUtils-MakeMaker-6.80 ... OK
Successfully installed ExtUtils-MakeMaker-6.80 (upgraded from 6.57_05)
Configuring Gearman-XS-0.15 ... N/A
! Configure failed for Gearman-XS-0.15. See /home/vagrant/.cpanm/build.log for details.
1 distribution installed
It seems that Module::Install is missing on a fresh Perl installation:
$ less /home/vagrant/.cpanm/build.log
<...>
Configuring Gearman-XS-0.15
Running Makefile.PL
Can't locate inc/Module/Install.pm in @INC (@INC contains: /vagrant/local/lib/perl5/x86_64-linux-gnu-thread-multi /vagrant/local/lib/perl5/x86_64-linux-gnu-thread-multi /vagrant/local/lib/perl5 /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at Makefile.PL line 12.
BEGIN failed--compilation aborted at Makefile.PL line 12.
-> N/A
Adding Module::Install as a configure dependency (see attached patch) seems to help.
Subject: | gearman-xs-module-install.diff |
diff --git a/META.yml b/META.yml
index 1005643..410e6ab 100644
--- a/META.yml
+++ b/META.yml
@@ -9,6 +9,7 @@ build_requires:
configure_requires:
ExtUtils::CBuilder: 0.27
ExtUtils::MakeMaker: 6.59
+ Module::Install: 0
distribution_type: module
dynamic_config: 1
generated_by: 'Module::Install version 1.06'
diff --git a/MYMETA.json b/MYMETA.json
index 248e33e..e94643b 100644
--- a/MYMETA.json
+++ b/MYMETA.json
@@ -30,7 +30,8 @@
},
"configure" : {
"requires" : {
- "ExtUtils::MakeMaker" : "0"
+ "ExtUtils::MakeMaker" : "0",
+ "Module::Install" : "0"
}
},
"runtime" : {
diff --git a/MYMETA.yml b/MYMETA.yml
index 909292e..9cc7ae8 100644
--- a/MYMETA.yml
+++ b/MYMETA.yml
@@ -9,6 +9,7 @@ build_requires:
Test::More: 0
configure_requires:
ExtUtils::MakeMaker: 0
+ Module::Install: 0
dynamic_config: 0
generated_by: 'ExtUtils::MakeMaker version 6.66, CPAN::Meta::Converter version 2.120921'
license: perl