Subject: | Missing MIME\types.db from pp-generated code |
Date: | Fri, 20 Dec 2013 01:46:41 +0100 |
To: | bug-PAR-Packer [...] rt.cpan.org |
From: | ric <md5159 [...] mclink.it> |
I've an issue, for a missing of MIME:Types.db from code generated via pp
of PAR::Packer.
Development environment is:
XP SP3 machine within VirtualBox
Strawberry Perl 5.18.1.1
PAR::Packer 1.017
MIME:Lite 3.030
Interpreted code (i.e. code invoked via "perl -w scriptname.pl") runs
fine within this environment, so I would exclude issues on the script.
pp compilation is invoked in a very plain way as
pp -v -o scriptname.exe scriptname.pl
and does not output any warning.
When the executable gets transferred on a "real" environment (an
independent, XP SP3 "true" box), program fails with a
"cannot open type database in MIME\types.db: No such file or directory"
As a matter of fact, if I enter the cache folder within TEMP (where
pp-compiled scripts expand their contents), and navigate downwards to
\inc\lib\MIME, I find 4 modules there (base64.pm, lite.pm, type.pm,
types.pm), but no types.db whatsoever.
I've also tried to include explicitly MIME:Lite via -M
pp -M MIME:Lite -v -o scriptname.exe scriptname.pl
and also, specifying source and destination of the file to be included,
pp -a
"c:\strawberry\perl\site\lib\MIME\types.db;/inc/lib/MIME/types.db"
-v -o scriptname.exe scriptname.pl
still, to no extent. In the last form, I've also opened the zipped
executable, and requested file is not where it should be.
Can't say whether this is an issue or a pitfall on my side; whatever the
case, any suggestion/workaround is greatly appreciated.
regards
ric