This is probably a newbie question as I have just started using pp. 开发者_高级运维I read the documentation on CPAN and tried to create an executable for my application. I use Camelbox and Tk on Windows XP, PAR::Packager version 0.991 (PAR version 0.994). To make sure pp works I created a very simple hello_world.pl
using Tk, compiled it into an .exe and ran it. So far so good.
When I use pp -o out.exe my_program.pl
on my application and try to run out.exe, a console window appears and shortly after dies without error message. The problem is that I don't know where to start looking for a solution since there is no message. I tried to do the same using tkpp
(a gui for pp) since it writes a log file - but the effect is the same and the log file is empty. Can someone please help me?
Upgrade Module::ScanDeps to latest version (or 0.95) and retry
Run you program from command prompt console window, copy error message and send it to PAR mailing list or PAR::Packer bug tracker
If you don't get an error how do you know it dies?
It's possible your program works just fine but the console window is closing before you can see the output.
Perhaps try pausing after printing hello world?
print "Hello, World!";
<>; # pause for input
精彩评论