in reply to Re^2: pp utility incompatibility issue with windows
in thread pp utility incompatibility issue with windows

Are you using Ubuntu to create the .exe and then trying to run that on Windows? If so, that's your problem right there. Using pp, you can't build an executable one platform (Windows, Linux, Mac, etc.) and get that executable to run on another platform.

To create a Windows executable, you'll need to do this on Windows. Two popular Perl distributions for Windows are ActivePerl from ActiveState and http://strawberryperl.com/. If you're wanting to try Perl on Windows and don't want to install anything, I would recommend checking out portable Strawberry Perl, which does not install anything.

In order to install PAR::Packer (which has the pp utility), you'll definitely need a compiler and a make utility. Strawberry Perl already comes with both ready for use. With ActivePerl, you'll just need to use their PPM utility to install MinGW and dmake.

Of course, if you have Perl installed and have all the needed modules installed too, you might be able to just copy your script to your Windows system and just run it.

  • Comment on Re^3: pp utility incompatibility issue with windows

Replies are listed 'Best First'.
Re^4: pp utility incompatibility issue with windows
by mailmeakhila (Sexton) on Apr 13, 2012 at 16:05 UTC
    Wow that was really helpful. Thank you so much
Re^4: pp utility incompatibility issue with windows
by Anonymous Monk on Apr 14, 2012 at 16:02 UTC
    Hi dasgar, I am having trouble installing pp utility on strawberry perl. I am getting this error:
    windres -o ppresource.coff winres\pp.res windres: unexpected version string length 68 != 32 + 8 dmake: Error code 129, while making 'ppresource.coff' dmake: Error code 255, while making 'subdirs'
    Any idea. Thank you Akhila

      Any idea.

      Do  dmake realclean then report everything from  perl Makefile.PL && dmake

        I'm encountering the same problem running perl 5.14.2 on Windows XP from a Strawberry Perl 5.14.2.1-32bit distribution.

        After running dmake realclean, here is the output that you mentioned would be helpful from perl Makefile.PL and dmake:

        C:\DwimPerl\perl\Downloads\PAR-Packer-1.013>perl Makefile.PL Checking if your kit is complete... Looks good Prototype mismatch: sub main::prompt: none vs ($;$) at C:/DwimPerl/per +l/lib/ExtU tils/MakeMaker.pm line 219 Writing Makefile for par.exe Writing MYMETA.yml and MYMETA.json Writing Makefile for PAR::Packer Writing MYMETA.yml and MYMETA.json C:\DwimPerl\perl\Downloads\PAR-Packer-1.013>dmake cp lib/App/Packer/PAR.pm blib\lib\App\Packer\PAR.pm cp lib/PAR/Packer.pm blib\lib\PAR\Packer.pm cp lib/PAR/Filter/Obfuscate.pm blib\lib\PAR\Filter\Obfuscate.pm cp lib/PAR/Filter/PodStrip.pm blib\lib\PAR\Filter\PodStrip.pm cp lib/PAR/StrippedPARL/Base.pm blib\lib\PAR\StrippedPARL\Base.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:\DwimPerl\perl\bin\perl.exe file2c.pl -s ..\script\par.pl my_par_pl. +c load_my_ par_pl C:\DwimPerl\perl\bin\perl.exe sha1.c.PL gcc -c -s -O2 -DWIN32 -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -DP +ERL_IMPLIC IT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -I +"C:\DwimPe rl\perl\lib\CORE" -DLOAD_MY_LIBGCC -DPARL_EXE=\"parl.exe\" -s -O2 mai +n.c windres -F pei-i386 -i winres\pp.rc -o winres\pp.res windres -o ppresource.coff winres\pp.res windres: unexpected version string length 68 != 32 + 8 dmake: Error code 129, while making 'ppresource.coff' dmake: Error code 255, while making 'subdirs'