Thread Module::Build bringt Fehler (4 answers)
Opened by GUIfreund at 2012-08-02 20:10

GUIfreund
 2012-08-02 20:10
#160522 #160522
User since
2011-08-08
559 Artikel
BenutzerIn
[default_avatar]
Ich mache meine ersten Gehversuche mit Module::Build, aber ich komme gar nicht dazu, es wirklich zu benutzen, da schon Build.PL abbricht. Build.PL sieht z. Zt. so aus:
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use strict;
use warnings;

use 5.008008; # NOT 5.8.8 - needed by CPAN testers
use Module::Build;

my %args;
%args = (
         'dist_name'           => 'Sudoku-Trainer',
         'dist_version'        => '0.000_001',
         module_name  => 'Sudoku::Trainer::Cell',
         'script_files' => '$scriptdir/trainer.pl',
         dist_author  => 'GUIfreund <GUIfreund\@perl.de>',
         license => 'perl',
         create_license => 1,
         requires => { perl => '>= 5.8.8' },
         create_makefile_pl => 'traditional',
         'dist_abstract'       => 'Train on detecting ...',
);

        my $build = Module::Build->new(%args);
        $build->create_build_script;  #generate Build

Als Ausgabe erhalte ich
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Set up gcc environment - 3.4.5 (mingw-vista special r3)
Set up gcc environment - 3.4.5 (mingw-vista special r3)
Can't find dist packages without a MANIFEST file
Run 'Build manifest' to generate one

WARNING: Possible missing or corrupt 'MANIFEST' file.
Nothing to enter for 'provides' field in metafile.
Could not get valid metadata. Error is: JSON 2.5 is required for $ENV{PERL_JSON_
BACKEND} = 'JSON::XS'
at E:/Programme/ActivePerl/site/lib/CPAN/Meta/Converter.pm line 23.
at E:/Programme/ActivePerl/site/lib/Module/Build/Base.pm line 4571.

Could not create MYMETA files
Creating new 'Build' script for 'Sudoku-Trainer' version '0.000_001'

Ich vermute, dass mein Problem in der Zeile
JSON 2.5 is required ...
liegt. Installiert ist JSON 2.53; es ist keine neuere Version in ppm verfügbar.

Ich arbeite mit Windows XP SP3 und Active Perl v5.14.2.
Gruß
GUIfreund

View full thread Module::Build bringt Fehler