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

Both machines are 64 bit. I am using ubuntu and windows 7. I am not sure where to debug. The script runs perfectly fine in ubuntu.
  • Comment on Re^2: pp utility incompatibility issue with windows

Replies are listed 'Best First'.
Re^3: pp utility incompatibility issue with windows
by dasgar (Priest) on Apr 13, 2012 at 15:16 UTC

    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.

      Wow that was really helpful. Thank you so much
      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