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

I am running tkpp to convert my perl script to an "exe" file. my environment is ASP perl 64 bit V5.24 and I have installed "PAR-Packer-1.037". The script I am trying to convert, had no issues when I was using ASP PDK v9.2. Now every thing seems to work find except the end with the following error message at the veru last line in the log file.

C:\Perl64\site\bin\pp.bat: Failed to extract a parl from 'PAR::Strippe +dPARL::Static' to file 'C:\Users\Shahriar\AppData\Local\Temp\parlGiqe +nzz.exe'Building Q:\W_PERL\_000_Dev\Netlister\Netlister.exe failed : The system cannot find the file specified.

Replies are listed 'Best First'.
Re: Tk pp fails at very end
by Discipulus (Canon) on Sep 17, 2017 at 10:11 UTC
    Hello smh,

    while I cannot resolve directly your problem, I can suggest a workaround. I abandoned active perl many years ago and I permanently switched to strawberry flavour.

    Strawberry comes within many preinstalled and working packages including PAR. At least you can try a portable strawberry distro, launch it using portableshell.bat then launch a CPAN client to install Tk and finally build the executable using the strawberry pp.bat you already have. Once I get troubles including a missing dll file for a Tk application.. but I'm not able to find the post about it.

    I also have many useful links about pp and PAR::Packer in my homenode.

    L*

    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

      Strawberry Perl is great, and is what I use, but if the root cause is an antivirus program then switching from ActivePerl to Strawberry Perl won't fix the problem.

      Installing the latest Tk also gives test failures under Strawberry Perl 5.24 and 5.26 on my system, but that's a separate issue. The tkpp GUI does run if you force install Tk, but I did not try building an exe using it.

Re: tkpp fails at very end
by swl (Prior) on Sep 17, 2017 at 09:40 UTC

    There's not a lot of detail in your post to allow reproduction of the issue, but in my experience antivirus programs can sometimes cause errors when packing. If you are using one then maybe try disabling it while building the executable.

    A google search also found this RT comment: https://rt.cpan.org/Public/Bug/Display.html?id=57272#txn-773865. That RT was for an issue building PAR::Packer, and antivirus was not the cause of the issue in that particular case, but it does show that others have hit issues with antivirus programs and pp.

Re: tkpp fails at very end
by Anonymous Monk on Sep 18, 2017 at 01:01 UTC

    Give ppsimple.pl a try, if it doesn't work post the last part of the log which is the call to pp/invocation of pp, and the output of pp