problème de compilation avec pp
Bonjour,
Je rencontre un problème lors de la compilation d'un script perl avec PP pour en faire
un exécutable.
Voici la commande PP et ce qu'elle renvoie :
C:\NF\TinyDRP_Mexique_V1.7>pp -a DRP/L10N/es_mx.pm -g -o TinyDRP.exe TinyDRP.pl
Code:
1 2 3 4 5 6 7 8
| PAR::StrippedPARL::Static->get_raw() did not return the raw binary data for a PA
R loader at C:/Perl/site/lib/PAR/StrippedPARL/Base.pm line 141, <DATA> line 1.
Could not write temporary parl (class PAR::StrippedPARL::Static) to file 'C:\DOC
UME~1\fabreni.FR\LOCALS~1\Temp\parltbVi.exe' at C:/Perl/site/lib/PAR/StrippedPAR
L/Base.pm line 65, <DATA> line 1.
C:\Perl\site\bin/pp: Failed to extract a parl from 'PAR::StrippedPARL::Static' t
o file 'parll5Gvmh0.exe' at C:/Perl/site/lib/PAR/Packer.pm line 1172, <DATA> lin
e 1. |
J'ai donc pensé à un problème d'install de pp, et effectivement en refaisant l'install j'ai des warnings
et des erreurs, mais je ne sais pas les interpréter, cf. ci-dessous...
Merci pour votre aide.
Install PAR PACKER
1) perl makefile.pl
C:\NF\PP>perl makefile.pl
Code:
1 2 3 4 5 6 7 8 9
| Fetching 'PAR-Packer-1.007-MSWin32-x86-multi-thread-5.8.8.par' from www.cpan.org
... Fetching failed:
No compiler found, won't generate 'script/parl.exe'!
Warning: prerequisite ExtUtils::MakeMaker 6.42 not found. We have 6.3201.
Warning: prerequisite Module::ScanDeps 0.98 not found. We have 0.83.
Warning: prerequisite PAR 1.000 not found. We have 0.977.
Warning: prerequisite Parse::Binary 0.04 not found.
Warning: prerequisite Win32::Exe 0.14 not found.
Writing Makefile for PAR::Packer |
2) nmake : OK sans erreur ni warning
3) nmake test :
C:\NF\PP>nmake test
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
| Microsoft (R) Program Maintenance Utility Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.
C:\Perl\bin\perl.exe "-Iinc" -MExtUtils::Command -e cp script/tkpp blib\
script\tkpp
pl2bat.bat blib\script\tkpp
C:\Perl\bin\perl.exe "-Iinc" -MExtUtils::Command -e cp script/pp blib\sc
ript\pp
pl2bat.bat blib\script\pp
C:\Perl\bin\perl.exe "-Iinc" -MExtUtils::Command -e cp script/par.pl bli
b\script\par.pl
pl2bat.bat blib\script\par.pl
C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'in
c', 'blib\lib', 'blib\arch')" t/00-pod.t t/20-pp.t t/30-current_exec.t t/40-pack
er_cd_option.t t/90-rt59710.t
t/00-pod.................skipped
all skipped: Set environment variable PERL_TEST_POD=1 to test POD
t/20-pp..................skipped
all skipped: 'parl' not found
t/30-current_exec........# Please wait
PAR::StrippedPARL::Static->get_raw() did not return the raw binary data for a PA
R loader at blib\lib/PAR/StrippedPARL/Base.pm line 141, <DATA> line 1.
Could not write temporary parl (class PAR::StrippedPARL::Static) to file 'C:\DOC
UME~1\fabreni.FR\LOCALS~1\Temp\parlXWJW.exe' at blib\lib/PAR/StrippedPARL/Base.p
m line 65, <DATA> line 1.
C:\NF\PP\blib\script\pp: Failed to extract a parl from 'PAR::StrippedPARL::Stati
c' to file 'parlnMNe7lK.exe' at blib\lib/PAR/Packer.pm line 1172, <DATA> line 1.
t/30-current_exec........NOK 1/4# Failed test 'Created "C:\NF\PP\t\test-10.exe
c"'
# at t/30-current_exec.t line 42.
Failed to create "C:\NF\PP\t\test-10.exec"!
# Looks like you planned 4 tests but ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test exited with 2 just after 1.
t/30-current_exec........dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-4
Failed 4/4 tests, 0.00% okay
t/40-packer_cd_option....PAR::StrippedPARL::Static->get_raw() did not return the
raw binary data for a PAR loader at C:\NF\PP\blib\lib/PAR/StrippedPARL/Base.pm
line 141, <DATA> line 1.
Could not write temporary parl (class PAR::StrippedPARL::Static) to file 'C:\DOC
UME~1\fabreni.FR\LOCALS~1\Temp\parl1ujl.exe' at C:\NF\PP\blib\lib/PAR/StrippedPA
RL/Base.pm line 65, <DATA> line 1.
t/40-packer_cd_option.t: Failed to extract a parl from 'PAR::StrippedPARL::Stati
c' to file 'parlxekgPY1.exe' at C:\NF\PP\blib\lib/PAR/Packer.pm line 1172, <DATA
> line 1.
# Looks like your test exited with 255 before it could output anything.
t/40-packer_cd_option....dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-2
Failed 2/2 tests, 0.00% okay
t/90-rt59710.............PAR::StrippedPARL::Static->get_raw() did not return the
raw binary data for a PAR loader at C:\NF\PP\blib\lib/PAR/StrippedPARL/Base.pm
line 141, <DATA> line 1.
Could not write temporary parl (class PAR::StrippedPARL::Static) to file 'C:\DOC
UME~1\fabreni.FR\LOCALS~1\Temp\parlWGSe.exe' at C:\NF\PP\blib\lib/PAR/StrippedPA
RL/Base.pm line 65, <DATA> line 1.
C:\NF\PP\blib\script\pp: Failed to extract a parl from 'PAR::StrippedPARL::Stati
c' to file 'parlH4SC1Se.exe' at C:\NF\PP\blib\lib/PAR/Packer.pm line 1172, <DATA
> line 1.
t/90-rt59710.............NOK 1/3# Failed test 'Created "C:\DOCUME~1\fabreni.FR
\LOCALS~1\Temp\rt59710.exe"'
# at t/90-rt59710.t line 21.
Failed to create "C:\DOCUME~1\fabreni.FR\LOCALS~1\Temp\rt59710.exe"!
# Looks like you planned 3 tests but ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test exited with 2 just after 1.
t/90-rt59710.............dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-3
Failed 3/3 tests, 0.00% okay
Failed Test Stat Wstat Total Fail List of Failed
-------------------------------------------------------------------------------
t/30-current_exec.t 2 512 4 7 1-4
t/40-packer_cd_option.t 255 65280 2 4 1-2
t/90-rt59710.t 2 512 3 5 1-3
2 tests skipped.
Failed 3/5 test scripts. 9/9 subtests failed.
Files=5, Tests=9, 23 wallclock secs ( 0.00 cusr + 0.00 csys = 0.00 CPU)
Failed 3/5 test programs. 9/9 subtests failed.
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x2'
Stop. |