in reply to Re^3: Perl pp fails to create executable
in thread Perl pp fails to create executable

OS: Windows 7 64-bit

I eventually got the Perl Modules from http://trouchelle.com/ppm12 since I am (now) using ActiveState Perl 5.12.3 and both PAR and PAR::Packer installed without issue. The issue now is the following when I attempt to use the 'pp' utility

C:\home>pp -o test_pdk.exe C:\Perl_Code\test_pdk.pl Set up gcc environment - 3.4.5 (mingw-vista special r3) Perl lib version (5.12.3) doesn't match executable version (v5.12.0) a +t C:/Perl/ lib/Config.pm line 50. Compilation failed in require at C:/Perl/lib/Errno.pm line 8. BEGIN failed--compilation aborted at C:/Perl/lib/Errno.pm line 8. Compilation failed in require at C:/Perl/lib/File/Temp.pm line 148. BEGIN failed--compilation aborted at C:/Perl/lib/File/Temp.pm line 148 +. Compilation failed in require at C:/Perl/lib/Archive/Zip.pm line 14. BEGIN failed--compilation aborted at C:/Perl/lib/Archive/Zip.pm line 1 +4. Compilation failed in require at -e line 449. C:\Perl\site\bin/pp: Failed to extract a parl from 'PAR::StrippedPARL: +:Static' t o file 'parla9DY7hl.exe' at C:/Perl/site/lib/PAR/Packer.pm line 1155, +<DATA> lin e 1.

Any ideas on what may be causing the lib mismatch issue? And how to correct?

Cheers!

Replies are listed 'Best First'.
Re^5: Perl pp fails to create executable
by marto (Cardinal) on Feb 17, 2012 at 23:46 UTC
    looks like you ignored my advice, contrary to your claim.

      Didn't mean to hurt your -- or anyone's -- feelings marto. I have been trying different combinations and its been hard to keep track of things. Accept my apologies -- I value your advice as much as everyone else's.

      Cheers.

        Don't worry about it, regardless of which version of perl you're currently using (ActiveState vs Strawberry) I still suggest using cpan to install pp. If using ActiveState you'll need to install build tools (MinGW, dmake) which can be done via:

        ppm install MinGW

        Once this is done (note Strawberry ships with everything you need) you'll be able to install pp via:

        cpan pp
Re^5: Perl pp fails to create executable
by Anonymous Monk on Feb 17, 2012 at 22:37 UTC

    Any ideas on what may be causing the lib mismatch issue? And how to correct?

    Usually, modules compiled for 5.12.0 will work on 5.12.3, for the most part the x in 5.12.x is ignored

    But PAR/PAR::Packer being parl.exe and parldyn.exe (essentially perl.exe), now needs/wants exact equivalence of all three number. I can't tell if this is by design, or if its an oversight, but it makes getting PAR via ppm useless

    You will have to remove the ppm installed PAR/PAR::Packer and compile PAR/PAR::Packer yourself. It should be as easy as cpan install PAR::Packer or cpanp i PAR::Packer

Re^5: Perl pp fails to create executable
by dasgar (Priest) on Feb 17, 2012 at 22:54 UTC

    I'm not familiar with that repository, but it looks like there may be an incompatibility between the version of ActivePerl used to compile the ppm and the version of ActivePerl that you are using. That's just a guess on my part.

    Here's what I would try if I were in your place:

    • Uninstall the the PAR modules that you installed from that repository.
    • Install MinGW and dmake from the default ActiveState repository that was configured into PPM when you installed ActivePerl.
    • From a command prompt, you should now be able to install directly from CPAN by typing cpan install PAR::Packer

    Alternatively, if you wanted to go back to Strawberry Perl, it will already have MinGW and dmake ready to for use after install. However, you'll probably want to use a newer version than what you listed in your original post.