Created
March 4, 2013 03:50
-
-
Save hamakn/5079781 to your computer and use it in GitHub Desktop.
perlbrew install perl-5.16.2 failed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% perlbrew install perl-5.16.2 | |
Fetching perl 5.16.2 as /Users/katsunori.kawaguchi/perl5/perlbrew/dists/perl-5.16.2.tar.bz2 | |
Installing /Users/katsunori.kawaguchi/perl5/perlbrew/build/perl-5.16.2 into ~/perl5/perlbrew/perls/perl-5.16.2 | |
This could take a while. You can run the following command on another shell to track the status: | |
tail -f ~/perl5/perlbrew/build.perl-5.16.2.log | |
Installation process failed. To spot any issues, check | |
/Users/katsunori.kawaguchi/perl5/perlbrew/build.perl-5.16.2.log | |
If some perl tests failed and you still want install this distribution anyway, | |
do: | |
(cd /Users/katsunori.kawaguchi/perl5/perlbrew/build/perl-5.16.2; make install) | |
You might also want to try upgrading patchperl before trying again: | |
perlbrew install-patchperl | |
Generally, if you need to install a perl distribution known to have minor test | |
failures, do one of these command to avoid seeing this message | |
perlbrew --notest install perl-5.16.2 | |
perlbrew --force install perl-5.16.2 | |
% less /Users/katsunori.kawaguchi/perl5/perlbrew/build.perl-5.16.2.log | |
version version 0.87 required--this is only version 0.82 at /loader/0x7f9773841fa0/Module/Metadata.pm line 20. | |
BEGIN failed--compilation aborted at /loader/0x7f9773841fa0/Module/Metadata.pm line 20. | |
Compilation failed in require at /loader/0x7f9773841fa0/Module/Load/Conditional.pm line 14. | |
BEGIN failed--compilation aborted at /loader/0x7f9773841fa0/Module/Load/Conditional.pm line 14. | |
Compilation failed in require at /System/Library/Perl/5.12/IPC/Cmd.pm line 46. | |
BEGIN failed--compilation aborted at /System/Library/Perl/5.12/IPC/Cmd.pm line 46. | |
Compilation failed in require at /loader/0x7f9773841fa0/Devel/PatchPerl.pm line 13. | |
BEGIN failed--compilation aborted at /loader/0x7f9773841fa0/Devel/PatchPerl.pm line 13. | |
Compilation failed in require at /Users/katsunori.kawaguchi/perl5/perlbrew/bin/patchperl line 20621. | |
BEGIN failed--compilation aborted at /Users/katsunori.kawaguchi/perl5/perlbrew/bin/patchperl line 20621. |
In a whim, (meta)patch perlpatch's fatpacked Module::Metadata to require v0.77 instead of 0.87:
--- perl5/bin/patchperl.ORIG 2013-03-04 13:19:17.000000000 +0000
+++ perl5/bin/patchperl 2013-03-04 13:11:00.000000000 +0000
@@ -19389,7 +19389,7 @@
use Carp qw/croak/;
use File::Spec;
use IO::File;
- use version 0.87;
+ use version 0.77;
BEGIN {
if ($INC{'Log/Contextual.pm'}) {
Log::Contextual->import('log_info');
This did the trick for me.
I experienced same error and it was also fixed by the patch
Wow, good catch. My problem was solved using hamakn's method.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OS標準のperlのMoudle::Metadataを更新したら解決した。
$ sudo cpan install Module::Metadata