|laziness, impatience, and hubris|
strawberry par::packer, @INC and the difference between -c and -xby Boldra (Deacon)
|on Nov 26, 2009 at 09:08 UTC||Need Help??|
Boldra has asked for the
wisdom of the Perl Monks concerning the following question:
For some reason I'm not getting the libraries in my par exe that I want. I've boiled the problem down to the following test case:
Then when packaging I get:
The warning about the unquoted string doesn't really interest me. The point is that -x works (finds strict version 1001), but -c (or -o) doesn't work.
What I'm trying to do is create a portable binary, with a different version of a library which is also in core. It seems that when I try to create an exe (with -o or -c), my local strict.pm is ignored in favour of the global one. In reality it's Win32::TieRegistry I'm trying to distribute with my exe (because the cpan version still doesn't include this patch).
I've also tried adding -Ilib to the perl switches (between perl.exe and pp). As a workaround I will update my global version of the module just for compiling :(.
Thanks for any help on this.