in reply to PAR::Packer error

Hello drli611, and welcome to the Monastery!

This looks like it could be a re-appearance of PAR::Packer Bug #29933, which was marked “resolved” in 2007. However, you’ll need to supply more information before the monks can investigate. Specifically, what are the contents of file hw.pl? (We need a short, self-contained example script with which we can replicate the problem. A simple Hello, world! script packed with PAR::Packer works ok on my system, which is similar to yours.)

Cheers,

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

Replies are listed 'Best First'.
Re^2: PAR::Packer error
by drli611 (Initiate) on Jan 19, 2016 at 07:00 UTC

    Hi Athanasius,

    I have uploaded the script. It is a compilation of tutorials I have been thru.

    Cheers,

      Hello again drli611,

      I’ve successfully wrapped your script with PAR::Packer and run it on my system, without problem. (There are a couple of warnings you should attend to, but that’s not relevant here.) For the record, my environment is as follows:

      • Windows 8.1, 64-bit
      • Strawberry Perl: This is perl 5, version 22, subversion 1 (v5.22.1) built for MSWin32-x64-multi-thread
      • PAR::Packer version 1.029
      • File::Temp version 0.2304

      So, as dasgar says, it looks like a permissions issue. The error you report is Error removing C:/Users/DANIEL~1.LEG/AppData/Local/Temp/parl_MCNJgn.exe at C:/Strawberry/perl/lib/File/Temp.pm line 762, <DATA> line 1., and the relevant line in File::Temp is:

      unlink $file->[1] or warn "Error removing ".$file->[1];

      so the message is actually a warning indicating that the call to unlink failed. I’m sorry, I can’t explain why this is happening, but hopefully one of the other monks will know.

      Anyway, hope that helps,

      Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,