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:
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.
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.
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...)
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.