While building the next version of DWIM Perl, I was trying to install Module-Install-Repository-0.06 on Strawberry Perl 5.14.2 on Windows but it failed.
CPAN: CPAN::SQLite loaded ok (v0.202)
Database was generated on Fri, 10 Feb 2012 10:11:17 GMT
Running install for module 'Module::Install::Repository'
Running make for M/MI/MIYAGAWA/Module-Install-Repository-0.06.tar.gz
CPAN: Digest::SHA loaded ok (v5.63)
CPAN: Compress::Zlib loaded ok (v2.042)
Checksum for C:\strawberry\cpan\sources\authors\id\M\MI\MIYAGAWA\Modul
+e-Install-Repository-0.06.tar.gz ok
CPAN: Archive::Tar loaded ok (v1.80)
CPAN: File::Temp loaded ok (v0.22)
CPAN: Parse::CPAN::Meta loaded ok (v1.4401)
CPAN: CPAN::Meta loaded ok (v2.112621)
CPAN: Module::CoreList loaded ok (v2.57)
CPAN.pm: Building M/MI/MIYAGAWA/Module-Install-Repository-0.06.tar.g
+z
CPAN: CPAN::Reporter loaded ok (v1.2003)
Checking if your kit is complete...
Looks good
Writing Makefile for Module::Install::Repository
JSON 2.5 is required for $ENV{PERL_JSON_BACKEND} = 'JSON::XS'
at C:/strawberry/perl/lib/CPAN/Meta/Converter.pm line 22
at C:/strawberry/perl/lib/ExtUtils/MM_Any.pm line 1278
(C:\strawberry\perl\bin\perl.exe Makefile.PL exited with 65280)
CPAN::Reporter: Makefile.PL result is 'unknown', Stopped with an error
+.
CPAN::Reporter: preparing a CPAN Testers report for Module-Install-Rep
+ository-0.06
C:\strawberry>mversion JSON
2.53
C:\strawberry>mversion JSON::XS
2.32
So I went and cloned the github repository of Module-Install-Repository to see if I can figure out the problem: https://github.com/miyagawa/module-install-repository
C:\work\module-install-repository>perl Makefile.PL
include C:/work/module-install-repository/inc/Module/Install.pm
Bareword "auto_set_repository" not allowed while "strict subs" in use
+at Makefile.PL line 4.
Execution of Makefile.PL aborted due to compilation errors.
Now I am totally confused.
Isn't auto_set_repository supplied by Module-Install-Repository?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.