IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Langage Perl Discussion :

problème de compilation avec pp


Sujet :

Langage Perl

  1. #1
    Membre confirmé
    Profil pro
    Inscrit en
    Mars 2005
    Messages
    154
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2005
    Messages : 154
    Par défaut 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 : Sélectionner tout - Visualiser dans une fenêtre à part
    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 : Sélectionner tout - Visualiser dans une fenêtre à part
    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 : Sélectionner tout - Visualiser dans une fenêtre à part
    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.

  2. #2
    Responsable Perl et Outils

    Avatar de djibril
    Homme Profil pro
    Inscrit en
    Avril 2004
    Messages
    19 822
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Avril 2004
    Messages : 19 822
    Par défaut
    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.
    C'est clair non , tu devrais déjà mettre ces modules à jour.

  3. #3
    Membre confirmé
    Profil pro
    Inscrit en
    Mars 2005
    Messages
    154
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2005
    Messages : 154
    Par défaut
    Mes compétences en PERL se limitent en des modifications de code existant ....
    comment puis-je mettre à jour ces packages ?
    D'autre part, comme c'est des warnings, je me disais que çà ne venait pas de là ..?

  4. #4
    Membre expérimenté
    Homme Profil pro
    Gérant infopsylon
    Inscrit en
    Juin 2010
    Messages
    215
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 45
    Localisation : France

    Informations professionnelles :
    Activité : Gérant infopsylon
    Secteur : Industrie

    Informations forums :
    Inscription : Juin 2010
    Messages : 215
    Par défaut
    D'une manière générale, lorsque qu'un avertissement est affiché, c'est que tu risque d'avoir des soucis...

Discussions similaires

  1. Problème de compilation avec Borland : Direct Draw
    Par Burckel dans le forum Autres éditeurs
    Réponses: 2
    Dernier message: 26/09/2005, 18h17
  2. Problème de compilation avec Direct Input
    Par di-giac dans le forum DirectX
    Réponses: 6
    Dernier message: 06/05/2005, 18h19
  3. [MFC] Problème de compilation avec afxctl.h
    Par mick74 dans le forum MFC
    Réponses: 7
    Dernier message: 15/06/2004, 13h51
  4. Problème de compilation avec Dev-C++
    Par Rouliann dans le forum Dev-C++
    Réponses: 14
    Dernier message: 14/06/2004, 18h44
  5. Réponses: 1
    Dernier message: 29/10/2003, 12h16

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo