PAR pp version mismatch in config.pm

Posted by cellist on 2012-02-27 06:54
Forums: PPM | OS: Windows 7

First-time user of PAR pp. Getting error...

Perl lib version (5.12.4) doesn't match executable version (v5.12.0) at C:/Perl/
lib/Config.pm line 50.

Do I need to re-install perl?

command window:

C:\Users\Owner\NWCC perl>pp -o _hello _hello.pl
Set up gcc environment - 3.4.5 (mingw-vista special r3)
Perl lib version (5.12.4) doesn't match executable version (v5.12.0) at 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 14.
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 'parlZEz13GG.exe' at C:/Perl/site/lib/PAR/Packer.pm line 1155, lin
e 1.

_hello.pl source:

#!/usr/bin/perl -w
print "hello\n";

chorny | Mon, 2012-02-27 12:32

PAR::Packer should be installed without ppm, as Perl version should match exactly.

cellist | Mon, 2012-02-27 16:32

perl version should match exactly

Thanks for your reply, but I don't understand what you mean by perl version should match exactly. Should match what? My perl installation is 5.12.4 (see below) and the config.pm is 5.12.4. Is there something flawed in my perl installation? Do I need to be running 5.12.0 for PAR?

C:\Users\Owner>perl -v

This is perl 5, version 12, subversion 4 (v5.12.4) built for MSWin32-x86-multi-t
hread
(with 9 registered patches, see perl -V for more detail)

Copyright 1987-2010, Larry Wall

PAR::Packer should be installed without ppm

OK, what do I use to install PAR? Is PAR going to replace perl/lib/config.pm with one of its own modules?

chorny | Mon, 2012-02-27 17:37

PAR::Packer from ppm was compiled for perl 5.12.0 and you have 5.12.4. Launch cpan client and type 'install PAR::Packer'. Or `cpan PAR::Packer` from command line.

cellist | Mon, 2012-02-27 21:04

cpan PAR:Packer produced a ton of messages, most of which were lost when the buffer overflowed. Here are the last messages...

C:\Perl\bin\perl.exe encode_append.pl Static.in boot.exe Static.pm
cp Static.pm ..\blib\lib\PAR\StrippedPARL\Static.pm
cp Dynamic.pm ..\blib\lib\PAR\StrippedPARL\Dynamic.pm
C:\Perl\bin\perl.exe -Mblib run_with_inc.pl par.exe -q -B -Oparldyn.exe
Can't locate PAR/Heavy.pm in @INC (@INC contains: C:\Perl\cpan\build\PAR-Packer-
1.013-2KVJNW\blib\arch C:\Perl\cpan\build\PAR-Packer-1.013-2KVJNW\blib\lib C:/Pe
rl/site/lib C:/Perl/lib . C:/Perl/site/lib C:/Perl/lib .) at -e line 525, <_FH>
chunk 1.
system(par.exe -IC:\Perl\cpan\build\PAR-Packer-1.013-2KVJNW\blib\arch -IC:\Perl\
cpan\build\PAR-Packer-1.013-2KVJNW\blib\lib -IC:/Perl/site/lib -IC:/Perl/lib -I.
-q -B -Oparldyn.exe) failed:
dmake.exe: Error code 255, while making 'parldyn.exe'
dmake.exe: 'parldyn.exe' removed.
dmake.exe: Error code 255, while making 'subdirs'
RSCHUPP/PAR-Packer-1.013.tar.gz
C:\Perl\site\bin\dmake.exe -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible

chorny | Mon, 2012-02-27 21:44

Try building it manually - download, unpack, `perl Makefile.PL`, `dmake`, `dmake test`.

cellist | Tue, 2012-02-28 08:10

C:\Perl\bin\perl.exe -Mblib run_with_inc.pl par.exe -q -B -Oparldyn.exe
Can't locate PAR/Heavy.pm in @INC (@INC contains: C:\Perl\cpan\build\PAR-Packer-
1.013-2KVJNW\blib\arch C:\Perl\cpan\build\PAR-Packer-1.013-2KVJNW\blib\lib C:/Pe
rl/site/lib C:/Perl/lib . C:/Perl/site/lib C:/Perl/lib .)

Heavy.pm is not in any library in the INC list. It's actually in:
C:\Perl\site\lib\namespace\PAR\Heavy.pm

What do I download and unpack? From where?

chorny | Tue, 2012-02-28 13:12

Start with `ppm install PAR`.

You can download PAR::Packer from CPAN: http://search.cpan.org/dist/PAR-Packer/

cellist | Tue, 2012-02-28 15:01

I appreciate your trying to help me out. But I don't have much experience with the tools I'd probably have to use to do the build myself. My feeling is that, if the PAR code is pretty much ready to go with 5.14.2, it should be pretty easy for the PAR authors to make a 5.14.2-compatible build available. If they're interested in folks using PAR with 5.14.2, I think they'd do that. Again, thanks for your help and I apologize if I've wasted your time.

cssriraman | Thu, 2018-09-27 21:19

I had the same problem and below are the steps I took to resolve it.

The simple solution would be installing the PAR PACKER using cpanm instead of using PPM.

1. install Mingw using PPM (Perl package manager).
2. install cpanM (APP-cpanminus) using PPM.
3. Add C:\Perl64\site\lib\auto\MinGW\bin (path will be different for 32 bit installation) to Environment PATH variable.
4. Once the above steps are done, install PAR-Packer using cpanM =>

open command prompt and type

cpanm PAR::Packer

If there are any errors thrown you need to check the build log file (build log file path will be shown in the command prompt while executing the above command) and take necessary actions.

Once the installation is successful, then you can build executable.