Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: Perl pp fails to create executable

by Anonymous Monk
on Feb 17, 2012 at 00:52 UTC ( #954367=note: print w/ replies, xml ) Need Help??


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

PAR and PAR-Packer were both installed via ppm.

From which repository?


Comment on Re^3: Perl pp fails to create executable
Re^4: Perl pp fails to create executable
by tale051258 (Initiate) on Feb 17, 2012 at 20:34 UTC

    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!

      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

      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.

      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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://954367]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2014-11-26 06:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (163 votes), past polls