Fri Apr 16 05:24:02 2010: Request 56654 was acted upon. Transaction: Correspondence added by [email protected] Queue: PAR-Packer Subject: Re: [rt.cpan.org #56654] Archive::Zip and dlls not found on target system Broken in: 1.003 Severity: Important Owner: Nobody Requestors: [email protected] Status: open Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=56654 >
On Fri, Apr 16, 2010 at 9:32 AM, Douglas Wilson via RT <[email protected]> wrote: > I compiled an exe w/pp on Windows 95 with strawberry perl. It runs fine > on the system I compiled it on, but when I run it on other systems > without strawberry perl (a Windows Vista and another XP system), it says > "can't locate Archive/Zip.pm in @INC (@INC contains > C:/strawberry/perl/vendor/lib .)". I tried adding --module=Archive::Zip > to pp but get the same error. Might be related to http://rt.cpan.org/Public/Bug/Display.html?id=52794 A pp-packed executable contains two parts: (1) a special purpose Perl interpreter and a set of "built-in" modules (2) a .par archive (actually a zip archive) with your script and all modules used by it (directly and indirectly) that are not already present in part (1). Part (1) is the same for every pp-packed executable. It's created when you build PAR::Packer. Archive::Zip must be in part (1), because it's needed to get to the stuff in part (2). Looks like it's AWOL in your case (see below). Adding it with --module=Archive::Zip only adds it to part (2), so that won't work. To check what's actually in part (1) of your exe, please run the attached script perl extract-embedded.pl your.exe temp-direcory-to-extract-into and post its output. > The program uses Tk::PNG (from Tk) and libpng3.dll is also not found, > after adding --link=libpng3.dll, the program runs. Not sure if this part > is a bug or maybe it should be a separate bug. That's definitely a separate bug. The dependency on libpng3.dll should have been detected (actually by Module::ScanDeps) and hence it should get packed into part (2). Cheers, Roderich
extract-embedded.pl
Description: Binary data
