Subject: | Unable to run perl script packaged with pp under cygwin on another Windows XP installation |
Date: | Mon, 7 Feb 2011 08:25:08 -0800 (PST) |
To: | bug-PAR [...] rt.cpan.org |
From: | Oren Cheyette <ocheyette [...] gmail.com> |
I created a perl script parseDealerFiles.exe with pp:
pp -o parseDealerFiles.exe -c read_agency.pl
The resulting package runs fine on the build system. On other platforms,
however, it fails. On a clean XP box (no cygwin or perl installed), it fails
with
Show quoted text
> parseDealerFiles.exe
/cygdrive/c/DOCUME~1/OCHEYE~1/LOCALS~1/Temp/par-OCheyette/cache-f3bb3a3b5cf33a95f9828a5031438146c41d2801/parseDealerFiles:
error while loading shared libraries:
cygperl5_10.dll: cannot open shared object file: No such file or directory
This failure happens even though the dll does in fact exist in the cache:
Show quoted text>dir "C:\Documents and Settings\OCheyette\Local
>Settings\Temp\par-OCheyette\cache-f3bb3a3b5cf33a95f9828a5031438146c41d2801\cygperl5_10.dll"
>
Directory of C:\Documents and Settings\OCheyette\Local
Settings\Temp\par-OCheyette\cache-f3bb3a3b5cf33a95f9828a5031438146c41d2801
02/07/2011 07:43 AM 1,665,958 cygperl5_10.dll
1 File(s) 1,665,958 bytes
0 Dir(s) 65,451,020,288 bytes free
I attempted to fix this problem by installing a minimal version of cygwin+perl
on the clean system. That didn't work either - I hit some problem with the POSIX
module:
Can't locate
./C:/TEMP/par-OCheyette/cache-f3bb3a3b5cf33a95f9828a5031438146c41d2801/inc/lib/auto/POSIX/load_import.al
in @INC (@INC contains: CODE(0x10a8a680)
C:/TEMP/par-OCheyette/cache-f3bb3a3b5cf33a95f9828a5031438146c41d2801/inc/lib
C:/TEMP/par-OCheyette/cache-f3bb3a3b5cf33a95f9828a5031438146c41d2801/inc
CODE(0x108034a0) CODE(0x108039b0) /sfcore/Portfolio/Scripts) at POSIX.pm line 25
Version information:
Show quoted text> perl --version
This is perl, v5.10.1 (*) built for i686-cygwin-thread-multi-64int
(with 13 registered patches, see perl -V for more detail)
...
Show quoted text> pp --version
PAR Packager, version 1.008 (PAR version 1.002)
Copyright 2002-2009 by Audrey Tang <cpan@audreyt.org>
...