Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Perl pp fails to create executable

by tale051258 (Initiate)
on Feb 16, 2012 at 17:04 UTC ( [id://954279]=note: print w/replies, xml ) Need Help??


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

PAR and PAR-Packer were both installed via ppm. I am using strawberry Perl 5.8.9

  • Comment on Re^2: Perl pp fails to create executable

Replies are listed 'Best First'.
Re^3: Perl pp fails to create executable
by marto (Cardinal) on Feb 16, 2012 at 17:09 UTC

    Which repository did you use? The reason I ask is that I think packages aren't compatible with your version of Perl. You could remove them with PPM and try installing them via cpan.

      CPAN install fails. Maybe I should try Strawberry Perl or ActiveState Perl 5.14.x?

        "CPAN install fails."

        As I'm sure you're aware, this isn't helpful. Without details of what failed nobody can help you further. Obligatory How do I post a question effectively? link. Get a modern version of Straberry. Use cpan to install modules.

Re^3: Perl pp fails to create executable
by Anonymous Monk on Feb 17, 2012 at 00:52 UTC

    PAR and PAR-Packer were both installed via ppm.

    From which repository?

      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!

        looks like you ignored my advice, contrary to your claim.

        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.

Re^3: Perl pp fails to create executable
by tale051258 (Initiate) on Feb 16, 2012 at 17:07 UTC

    errata - PAR version is 1.000 and PAR-Packer is 0.991

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2024-04-16 10:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found