Microcebus has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks,

I'm creating standalone executable files using PAR Packer which worked fine till yet. But now I have a little problem. My script (GUI with Tk if that matters) runs without error or warning. When I create the exe file, I'm getting no warning or error also although debugging is turned on. But the exe file I get doesn't start. Though, no error message again... simply nothing happens.

What could be the reason for that?

Only strange thing is, that the exe file seems to be unusualy large (13MB)

Replies are listed 'Best First'.
Re: PAR Packer exe file doesn't run
by Anonymous Monk on Jul 15, 2011 at 07:16 UTC

      hmm... where do I have to turn on debugging? In the par.pl file? How can I do this? By adding the line

      $ENV{PAR_GLOBAL_DEBUG}=1;

      ???

      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

        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

Re: PAR Packer exe file doesn't run
by bart (Canon) on Jul 15, 2011 at 12:17 UTC
    Only strange thing is, that the exe file seems to be unusualy large (13MB)
    That is probably because the executable contains all of perl.