Installing PAR-Packer-1.017

Posted by rwynne on 2014-03-21 08:05
Forums: PPM | OS: Windows 7

Hi,

I am trying to install the PAR-Packer module. It wasn't found in the repository, so I grabbed it from CPAN. I followed some instructions here (http://stackoverflow.com/questions/8055063/how-to-install-pp-par-packager)...I question if they're good instructions.

After installing all the dependencies, I try a dmake and get the following errors:

C:\Users\wynner\Desktop\PAR-Packer-1.017>dmake
Set up gcc environment - gcc.exe (rubenvb-4.5.4) 4.5.4
C:\MinGW\bin\g++.exe main.o ppresource.coff -s -L"C:\Perl64\lib\CORE" C:\Perl
64\lib\CORE\perl514.lib C:\MinGW\lib\libkernel32.a C:\MinGW\lib\libuser32.a C:\M
inGW\lib\libgdi32.a C:\MinGW\lib\libwinspool.a C:\MinGW\lib\libcomdlg32.a C:\Min
GW\lib\libadvapi32.a C:\MinGW\lib\libshell32.a C:\MinGW\lib\libole32.a C:\MinGW\
lib\liboleaut32.a C:\MinGW\lib\libnetapi32.a C:\MinGW\lib\libuuid.a C:\MinGW\lib
\libws2_32.a C:\MinGW\lib\libmpr.a C:\MinGW\lib\libwinmm.a C:\MinGW\lib\libversi
on.a C:\MinGW\lib\libodbc32.a C:\MinGW\lib\libodbccp32.a C:\MinGW\lib\libcomctl3
2.a C:\MinGW\lib\libmsvcrt.a -o par.exe
ppresource.coff: file not recognized: File format not recognized
collect2: ld returned 1 exit status
dmake.exe: Error code 129, while making 'par.exe'
dmake.exe: Error code 255, while making 'subdirs'

Can anyone offer any advice on how to get this installed? I'm using version 5.14.2 on Windows 7 64-bit.

grahams
ActiveState Staff
Fri, 2014-03-21 10:44

It's a newer Perl, and Par-Packer 1.013 is available for it:

http://code.activestate.com/ppm/PAR-Packer/

rwynne | Mon, 2014-03-24 07:15

Is there a way to get this module without the Business Edition? The link is asking me for a login/password. Also, the PPM GUI is unable to find the module in the repository.

I installed 5.16 64-bit and grabbed Par-Packer 1.013 from CPAN, but am still getting errors trying to manually install.

grahams
ActiveState Staff
Mon, 2014-03-24 09:44

You don't need Business Edition for current Community Edition Perls if you use the PPM GUI or the PPM commandline.

You will get the BE intercept on any attempt to use a manual process outside of PPM.

Are you configured correctly? Check your PPM status line at the bottom of the GUI. If the number of modules available is the same as the number of modules installed, you don't have internet connection to the PPM servers. Check the Help section in the PPM documentation for the instructions to set up environment variables for getting through a proxy server or a firewall.

rwynne | Mon, 2014-03-24 11:30

Getting closer!

My status line reads:

17906 packages, 282 listed | 282 installed

After clicking "View all packages" I can find PAR-Packer 1.013. It installs fine, but when I try to use it I get:

C:\Users\wynner\Desktop\ExtractBranches>pp -o test.exe formatBranch.pl
Set up gcc environment - gcc.exe (rubenvb-4.5.4) 4.5.4
Perl lib version (5.16.3) doesn't match executable 'C:\Users\wynner\AppData\Loca
l\Temp\1\parlHMN7.exe' version (v5.16.0) at C:/Perl64/lib/Config.pm line 60.
Compilation failed in require at C:/Perl64/lib/Errno.pm line 8.
BEGIN failed--compilation aborted at C:/Perl64/lib/Errno.pm line 8.
Compilation failed in require at C:/Perl64/lib/File/Temp.pm line 148.
BEGIN failed--compilation aborted at C:/Perl64/lib/File/Temp.pm line 148.
Compilation failed in require at C:/Perl64/lib/Archive/Zip.pm line 14.
BEGIN failed--compilation aborted at C:/Perl64/lib/Archive/Zip.pm line 14.
Compilation failed in require at -e line 459.
C:\Perl64\site\bin/pp: Failed to extract a parl from 'PAR::StrippedPARL::Static'
to file 'C:\Users\wynner\AppData\Local\Temp\1\parleKHkqRX.exe' at C:/Perl64/sit
e/lib/PAR/Packer.pm line 1169, line 1.

rwynne | Tue, 2014-03-25 11:12

I changed line 60 of Config.pm from:

$^V eq 5.16.3

To:

$^V eq 5.16.3 or $^V eq 5.16.0

See http://stackoverflow.com/questions/15925992/perl-install-parpacker-problems