Stamm has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
It's been several days that I tried several things and I can't seem to find the solution alone, so I'm asking for help.
I packaged my program with pp on my development system. When I try to run it on a perlless system, it fails with the following error:
What am I doing wrong?
Some more information you may need:
- I'm using Active Perl
- I installed pp using the cpan command-line utility (not PPM)
- I used this to pack the binary: pp -vvv -M unicore/Heavy.pl -o program.exe program.pl (I have to manually include unicore/Heavy.pl for the program to pack successfully. Maybe it's linked to my problem...)
It's been several days that I tried several things and I can't seem to find the solution alone, so I'm asking for help.
I packaged my program with pp on my development system. When I try to run it on a perlless system, it fails with the following error:
On the target system, after trying to run the binary, I noticed that in the PAR temporary extraction directory (%TEMP%\par-xxx\{ds36r5tg4edr6...}\) that the inc subfolder (where all the modules should be) is missing. If I install Perl on the target system, all the needed files are present in the temporary directory and the program runs successfully. My hunch is that the unpacking goes wrong.Can't locate loadable object for module IO in @INC (@INC contains: COD +E(0xb3761c) .) at C:/Perl/site/lib/PAR/Heavy.pm line 103 Compilation failed in require at C:/Perl/lib/IO/Handle.pm line 266. BEGIN failed--compilation aborted at C:/Perl/lib/IO/Handle.pm line 266 +. Compilation failed in require at C:/Perl/lib/IO/Seekable.pm line 101. BEGIN failed--compilation aborted at C:/Perl/lib/IO/Seekable.pm line 1 +01. Compilation failed in require at C:/Perl/lib/IO/File.pm line 133. BEGIN failed--compilation aborted at C:/Perl/lib/IO/File.pm line 133. Compilation failed in require at -e line 351.
What am I doing wrong?
Some more information you may need:
- I'm using Active Perl
- I installed pp using the cpan command-line utility (not PPM)
- I used this to pack the binary: pp -vvv -M unicore/Heavy.pl -o program.exe program.pl (I have to manually include unicore/Heavy.pl for the program to pack successfully. Maybe it's linked to my problem...)
|
---|
Back to
Seekers of Perl Wisdom