in reply to Program made with perl2exe locks up

"Also, pp won't install with cpan. I get an error with dmake."

You're going to have to be specific and tell us what the error was. How do I post a question effectively?.

  • Comment on Re: Program made with perl2exe locks up

Replies are listed 'Best First'.
Re^2: Program made with perl2exe locks up
by bulrush (Scribe) on Jan 03, 2016 at 22:43 UTC
    I've done some searching and cannot find any cpan logs for Activestate Perl on my machine, but here's the last few lines of the install log when I did "cpan pp".
    Writing MYMETA.yml and MYMETA.json
    Set up gcc environment - gcc.exe (rubenvb-4.5.4) 4.5.4
    cp lib/PAR/StrippedPARL/Base.pm blib\lib\PAR\StrippedPARL\Base.pm
    cp lib/PAR/Packer.pm blib\lib\PAR\Packer.pm
    cp lib/PAR/Filter/PodStrip.pm blib\lib\PAR\Filter\PodStrip.pm
    cp lib/PAR/Filter/Obfuscate.pm blib\lib\PAR\Filter\Obfuscate.pm
    cp lib/App/Packer/PAR.pm blib\lib\App\Packer\PAR.pm
    cp lib/PAR/Filter.pm blib\lib\PAR\Filter.pm
    cp lib/PAR/Filter/PatchContent.pm blib\lib\PAR\Filter\PatchContent.pm
    cp lib/PAR/Filter/Bytecode.pm blib\lib\PAR\Filter\Bytecode.pm
    cp lib/pp.pm blib\lib\pp.pm
    cp lib/PAR/Filter/Bleach.pm blib\lib\PAR\Filter\Bleach.pm
    C:\perl64\bin\perl.exe par_pl2c.pl my_par_pl < ..\script\par.pl > my_par_pl.c
    C:\perl64\bin\perl.exe sha1.c.PL
    C:\Perl64\site\bin\gcc.exe -c -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DWIN64 -D
    CONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT
     -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DHASATTRIBUTE -fno-strict-aliasing -mms-bitfi
    elds  -I"C:\Perl64\lib\CORE"  -DPARL_EXE=\"parl.exe\" -O2 main.c
    main.c: In function 'main':
    main.c:121:23: warning: assignment discards qualifiers from pointer target type
    windres -i winres/pp.rc -o ppresource.coff --input-format=rc --output-format=cof
    f --target=pe-x86-64
    'windres' is not recognized as an internal or external command,
    operable program or batch file.
    dmake.exe:  Error code 129, while making 'ppresource.coff'
    dmake.exe:  Error code 255, while making 'subdirs'
      RSCHUPP/PAR-Packer-1.028.tar.gz
      C:\Perl64\site\bin\dmake.exe -- NOT OK
    CPAN: YAML::XS loaded ok (v0.41)
    Running make test
      Can't test without successful make
    Running make install
      Make had returned bad status, install seems impossible
    
    C:\Perl64\projects>
    
    Hm, windres is not being found. Why wasn't it installed and how do I install it?
      Hm, windres is not being found. Why wasn't it installed and how do I install it?

      windres.exe is part of the MinGW distro.
      You should find it alongside gcc.exe (and others) in the MinGW/bin directory which, for you, appears to be C:\Perl64\site\bin.
      Is C:\Perl64\site\bin in your PATH ? (It should be.)

      Cheers,
      Rob

      Sounds like a path issue, what is the result of running the following at the command prompt:

      where windres