Skip to content

Instantly share code, notes, and snippets.

@hamakn
Created March 4, 2013 03:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hamakn/5079781 to your computer and use it in GitHub Desktop.
Save hamakn/5079781 to your computer and use it in GitHub Desktop.
perlbrew install perl-5.16.2 failed
% 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.
@hamakn
Copy link
Author

hamakn commented Mar 4, 2013

OS標準のperlのMoudle::Metadataを更新したら解決した。

$ sudo cpan install Module::Metadata

@codehead
Copy link

codehead commented Mar 4, 2013

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.

@bluescreen10
Copy link

I experienced same error and it was also fixed by the patch

@mcanlas
Copy link

mcanlas commented Mar 8, 2013

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