http://www.perlmonks.org?node_id=914547


in reply to Re^2: PAR Packer exe file doesn't run
in thread PAR Packer exe file doesn't run

ok. debugging is turned on. While packing I get sevaral messages like Unpacking file "7fef71be/AutoLoader.pm"... but exe file still doesn't run, script runs without problems

You should be getting the same messages when running the program

$ pp -e " use Tk; tkinit->MainLoop " $ set PAR_GLOBAL_DEBUG=1 $ a ... Unpacking file "ffd69863/auto/Fcntl/Fcntl.dll"... $ENV{PAR_TEMP} = ...

Are you sure you set the enviromental variable in the shell?

I would do as Basic debugging checklist suggests, and start inserting print statements into your program

Replies are listed 'Best First'.
Re^4: PAR Packer exe file doesn't run
by Microcebus (Beadle) on Jul 15, 2011 at 11:18 UTC
    With your example I get the same messages. But my exe file produces nothing. I cannot figure out any bug in the script. As I mentioned, there is no warning or error message when I run the script.

      With your example I get the same messages. But my exe file produces nothing. I cannot figure out any bug in the script. As I mentioned, there is no warning or error message when I run the script.

      Even after specifically inserting print/warn statements?

      Is the temp directory empty? Try specifying an alternate temp directory (like the current directory) and see if it grows

      Maybe your shell is fooling you (no DISPLAY)? Check %ERRORLEVEL% (or equivalent) after executing 'a', and check the file size, and upgrade PAR PAR::Packer to the latest

      $ ls -loanh a.exe -rwxrwxrwx 1 0 12M 2011-07-15 04:27 a.exe $ pmvers PAR PAR::Packer PAR: 1.002 PAR::Packer: 1.010