roez has asked for the wisdom of the Perl Monks concerning the following question:

Hello, I am trying to make an exe file from a perl script file. I am using ActiveState Perl 5.8.6 (Build 811) on Windows. This is the lcommand that i am running and the error msg:
pp -o sp.exe spdisplaye.pl Perl lib version (v5.8.6) doesn't match executable version (v5.8.8) at + C:/Perl/ ib/Config.pm line 32. Compilation failed in require at C:/Perl/lib/DynaLoader.pm line 25. BEGIN failed--compilation aborted at C:/Perl/lib/DynaLoader.pm line 25. Compilation failed in require at C:/Perl/site/lib/Compress/Zlib.pm line 15. Compilation failed in require at C:/Perl/site/lib/Archive/Zip.pm line 11. BEGIN failed--compilation aborted at C:/Perl/site/lib/Archive/Zip.pm line 11. Compilation failed in require at -e line 406. C:\Perl\Bin/pp: Failed to extract a parl from 'PAR::StrippedPARL::Static' to fi e 'parlHk8jbV7.exe' at C:/Perl/site/lib/PAR/Packer.pm line 1149, <DATA> line 1.
i am using PAR 0.976 i will be happy to find solution for thi problem as i am trying to solve it for more then 10 hours.. Thanks, Roi

Replies are listed 'Best First'.
Re: PAR Packer
by syphilis (Archbishop) on Jul 23, 2008 at 14:02 UTC
    Perl lib version (v5.8.6) doesn't match executable version (v5.8.8) at C:/Perl/lib/Config.pm line 32.

    Oooow ... that looks nasty. In a nutshell, whenever Config.pm gets loaded, you should get that error. (It's probably worth verifying that. Do you get the same error when you run perl -V:cc ? If not, then what follows may not be accurate.)

    This looks like a case of a botched ActivePerl upgrade - you have a Config.pm from perl-5.8.6, but your perl executable is version 5.8.8, and the only way I can think that might have happened is if, at some stage, you've tried to upgrade from 5.8.6 to 5.8.8 (but only half succeeded).

    If removing ActivePerl completely and then doing a fresh install is an option for you - then that's undoubtedly the best option.

    Cheers,
    Rob
      Looks like PARL, the PAR Packer packed perl is the wrong version, very easy since perl-5.8.8 isn't binary compatible with earlier 5.8 builds
        So how cani solvet this problem?
      Hi, When i run perl -V:cc i get "cc='cl'; I uninstalled my perl and reinstalled it and still i get the same error msg. also in my bin dir there is 5.8.6 perl exe file.. Thanks,
      Is installation of Strawberry Perl (both 5.10.0.1 & 5.8.0.1 available at the time of writing) not feasible?

      At last, a user level that overstates my experience :-))
Re: PAR Packer
by Bloodnok (Vicar) on Jul 23, 2008 at 13:57 UTC
    Hi Roi,

    You might try copying and pasting the error(s) into <CODE> tags to render the output readable ...

    At last, a user level that overstates my experience :-))