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

I'm unable to install Perl Module LibZip on my Windows platform. When using cpan utility (Strawberry 5.22.0) , I get following error message:
cpan> install LibZip Database was generated on Mon, 14 Sep 2015 12:43:51 GMT Running install for module 'LibZip' Checksum for C:\STRAWB~1\cpan\sources\authors\id\G\GM\GMPASSOS\LibZip- +0.06.tar.gz ok Scanning cache C:\STRAWB~1\cpan\build for sizes ...................................................................... +......DONE Configuring G/GM/GMPASSOS/LibZip-0.06.tar.gz with Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for the embed program (LibZipBin) Generating a dmake-style Makefile Writing Makefile for LibZip Writing MYMETA.yml and MYMETA.json GMPASSOS/LibZip-0.06.tar.gz C:\Strawberry\perl\bin\perl.exe Makefile.PL -- OK Running make for G/GM/GMPASSOS/LibZip-0.06.tar.gz cp lib/LibZip/Build/PodStripper.pm blib\lib\LibZip\Build\PodStripper.p +m cp lib/LibZip/MyFile.pm blib\lib\LibZip\MyFile.pm cp lib/LibZip.pm blib\lib\LibZip.pm cp lib/LibZip.epod blib\lib\LibZip.epod cp lib/LibZip/MyArchZip.pm blib\lib\LibZip\MyArchZip.pm cp lib/LibZip/Build/MyZlibCompress.pm blib\lib\LibZip\Build\MyZlibComp +ress.pm cp lib/LibZip/Build/UPX.pm blib\lib\LibZip\Build\UPX.pm cp lib/LibZip/Build/PerlBin.pm blib\lib\LibZip\Build\PerlBin.pm cp lib/LibZip/DynaLoader.pm blib\lib\LibZip\DynaLoader.pm cp lib/LibZip/MyZlib.pm blib\lib\LibZip\MyZlib.pm cp lib/LibZip/Build/CreateLib.pm blib\lib\LibZip\Build\CreateLib.pm cp lib/LibZip/Build/Package.pm blib\lib\LibZip\Build\Package.pm cp lib/LibZip/Info.pm blib\lib\LibZip\Info.pm cp lib/LibZip/CORE.pm blib\lib\LibZip\CORE.pm cp lib/LibZip/Build/LZW.pm blib\lib\LibZip\Build\LZW.pm cp lib/LibZip/InitLib.pm blib\lib\LibZip\InitLib.pm cp lib/LibZip/Scan.pm blib\lib\LibZip\Scan.pm cp lib/LibZip.pod blib\lib\LibZip.pod gcc -c -I./zlib-src -Wall -Wno-comments -s -O2 -DWIN32 -DWIN64 -DCON +SERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMP +LICIT_SYS -fwrapv -fno-strict-aliasing -m ms-bitfields -I"C:\STRAWB~1\perl\lib\CORE" adler32.c gcc -c -I./zlib-src -Wall -Wno-comments -s -O2 -DWIN32 -DWIN64 -DCON +SERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMP +LICIT_SYS -fwrapv -fno-strict-aliasing -m ms-bitfields -I"C:\STRAWB~1\perl\lib\CORE" compress.c gcc -c -I./zlib-src -Wall -Wno-comments -s -O2 -DWIN32 -DWIN64 -DCON +SERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMP +LICIT_SYS -fwrapv -fno-strict-aliasing -m ms-bitfields -I"C:\STRAWB~1\perl\lib\CORE" crc32.c gcc -c -I./zlib-src -Wall -Wno-comments -s -O2 -DWIN32 -DWIN64 -DCON +SERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMP +LICIT_SYS -fwrapv -fno-strict-aliasing -m ms-bitfields -I"C:\STRAWB~1\perl\lib\CORE" gzio.c gcc -c -I./zlib-src -Wall -Wno-comments -s -O2 -DWIN32 -DWIN64 -DCON +SERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMP +LICIT_SYS -fwrapv -fno-strict-aliasing -m ms-bitfields -I"C:\STRAWB~1\perl\lib\CORE" uncompr.c gcc -c -I./zlib-src -Wall -Wno-comments -s -O2 -DWIN32 -DWIN64 -DCON +SERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMP +LICIT_SYS -fwrapv -fno-strict-aliasing -m ms-bitfields -I"C:\STRAWB~1\perl\lib\CORE" deflate.c gcc -c -I./zlib-src -Wall -Wno-comments -s -O2 -DWIN32 -DWIN64 -DCON +SERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMP +LICIT_SYS -fwrapv -fno-strict-aliasing -m ms-bitfields -I"C:\STRAWB~1\perl\lib\CORE" trees.c gcc -c -I./zlib-src -Wall -Wno-comments -s -O2 -DWIN32 -DWIN64 -DCON +SERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMP +LICIT_SYS -fwrapv -fno-strict-aliasing -m ms-bitfields -I"C:\STRAWB~1\perl\lib\CORE" zutil.c gcc -c -I./zlib-src -Wall -Wno-comments -s -O2 -DWIN32 -DWIN64 -DCON +SERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMP +LICIT_SYS -fwrapv -fno-strict-aliasing -m ms-bitfields -I"C:\STRAWB~1\perl\lib\CORE" inflate.c gcc -c -I./zlib-src -Wall -Wno-comments -s -O2 -DWIN32 -DWIN64 -DCON +SERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMP +LICIT_SYS -fwrapv -fno-strict-aliasing -m ms-bitfields -I"C:\STRAWB~1\perl\lib\CORE" infblock.c gcc -c -I./zlib-src -Wall -Wno-comments -s -O2 -DWIN32 -DWIN64 -DCON +SERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMP +LICIT_SYS -fwrapv -fno-strict-aliasing -m ms-bitfields -I"C:\STRAWB~1\perl\lib\CORE" inftrees.c gcc -c -I./zlib-src -Wall -Wno-comments -s -O2 -DWIN32 -DWIN64 -DCON +SERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMP +LICIT_SYS -fwrapv -fno-strict-aliasing -m ms-bitfields -I"C:\STRAWB~1\perl\lib\CORE" infcodes.c gcc -c -I./zlib-src -Wall -Wno-comments -s -O2 -DWIN32 -DWIN64 -DCON +SERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMP +LICIT_SYS -fwrapv -fno-strict-aliasing -m ms-bitfields -I"C:\STRAWB~1\perl\lib\CORE" infutil.c gcc -c -I./zlib-src -Wall -Wno-comments -s -O2 -DWIN32 -DWIN64 -DCON +SERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMP +LICIT_SYS -fwrapv -fno-strict-aliasing -m ms-bitfields -I"C:\STRAWB~1\perl\lib\CORE" inffast.c gcc -c -I./zlib-src -Wall -Wno-comments -s -O2 -DWIN32 -DWIN64 -DCON +SERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMP +LICIT_SYS -fwrapv -fno-strict-aliasing -m ms-bitfields -I"C:\STRAWB~1\perl\lib\CORE" main.c main.c: In function 'prepare_args': main.c:134:9: warning: unused variable 'opts_count' [-Wunused-variable +] int opts_count = strlen(allow_opts) ; ^ main.c: In function 'main': main.c:282:7: warning: embedded '\0' in format [-Wformat-contains-nul] sprintf(CODE,"%s%s%s%s%s\0",LBZ_runA,LBZ_size,LBZ_runB,LBZ_size +2,LBZ_runC) ; ^ main.c:237:19: warning: unused variable 'i' [-Wunused-variable] int my_argc , i; ^ main.c: In function 'DispStream': main.c:425:2: warning: format '%ld' expects argument of type 'long int +', but argument 2 has type 'uInt' [-Wformat=] printf(" avail_in %ld\n", s->stream.avail_in); ^ main.c:426:2: warning: format '%ld' expects argument of type 'long int +', but argument 2 has type 'uInt' [-Wformat=] printf(" avail_out %ld\n", s->stream.avail_out); ^ main.c: In function 'deRef': main.c:528:2: warning: enumeration value 'SVt_NULL' not handled in swi +tch [-Wswitch] switch(SvTYPE(sv)) { ^ main.c:528:2: warning: enumeration value 'SVt_IV' not handled in switc +h [-Wswitch] main.c:528:2: warning: enumeration value 'SVt_NV' not handled in switc +h [-Wswitch] main.c:528:2: warning: enumeration value 'SVt_PV' not handled in switc +h [-Wswitch] main.c:528:2: warning: enumeration value 'SVt_INVLIST' not handled in +switch [-Wswitch] main.c:528:2: warning: enumeration value 'SVt_PVIV' not handled in swi +tch [-Wswitch] main.c:528:2: warning: enumeration value 'SVt_PVNV' not handled in swi +tch [-Wswitch] main.c:528:2: warning: enumeration value 'SVt_PVMG' not handled in swi +tch [-Wswitch] main.c:528:2: warning: enumeration value 'SVt_REGEXP' not handled in s +witch [-Wswitch] main.c:528:2: warning: enumeration value 'SVt_PVGV' not handled in swi +tch [-Wswitch] main.c:528:2: warning: enumeration value 'SVt_PVLV' not handled in swi +tch [-Wswitch] main.c:528:2: warning: enumeration value 'SVt_PVFM' not handled in swi +tch [-Wswitch] main.c:528:2: warning: enumeration value 'SVt_PVIO' not handled in swi +tch [-Wswitch] main.c:528:2: warning: enumeration value 'SVt_LAST' not handled in swi +tch [-Wswitch] MyZlib.xs: In function 'XS_LibZip__MyZlib__inflateInit': MyZlib.xs:365:17: warning: format '%d' expects argument of type 'int', + but argument 3 has type 'uLong' [-Wformat=] MyZlib.xs:365:17: warning: format '%d' expects argument of type 'int', + but argument 4 has type 'STRLEN' [-Wformat=] MyZlib.c: At top level: main.c:353:1: warning: 'SetGzError' defined but not used [-Wunused-fun +ction] SetGzError(gzFile file) ^ main.c:465:1: warning: 'gzreadline' defined but not used [-Wunused-fun +ction] gzreadline(LibZip__MyZlib__gzFile file, SV * output) ^ g++ adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o zu +til.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o +main.o win32.coff -s -s -L"C:\STRAWB~1 \perl\lib\CORE" -L"C:\STRAWB~1\c\lib" "C:\STRAWB~1\perl\lib\CORE\libp +erl522.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libmoldname.a" "C:\ST +RAWB~1\c\x86_64-w64-mingw32\lib\libkernel 32.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libuser32.a" "C:\STRAWB~1\ +c\x86_64-w64-mingw32\lib\libgdi32.a" "C:\STRAWB~1\c\x86_64-w64-mingw3 +2\lib\libwinspool.a" "C:\STRAWB~1\c\x86_6 4-w64-mingw32\lib\libcomdlg32.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib +\libadvapi32.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libshell32.a" " +C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libo le32.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\liboleaut32.a" "C:\STRAW +B~1\c\x86_64-w64-mingw32\lib\libnetapi32.a" "C:\STRAWB~1\c\x86_64-w64 +-mingw32\lib\libuuid.a" "C:\STRAWB~1\c\x8 6_64-w64-mingw32\lib\libws2_32.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\li +b\libmpr.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libwinmm.a" "C:\STR +AWB~1\c\x86_64-w64-mingw32\lib\libversion .a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libodbc32.a" "C:\STRAWB~1\c\ +x86_64-w64-mingw32\lib\libodbccp32.a" "C:\STRAWB~1\c\x86_64-w64-mingw +32\lib\libcomctl32.a" -o LibZipBin.exe C:/Strawberry/c/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x8 +6_64-w64-mingw32/bin/ld.exe: i386 architecture of input file `win32.c +off' is incompatible with i386:x86-64 out put collect2.exe: error: ld returned 1 exit status dmake: Error code 129, while making 'LibZipBin.exe' dmake.exe: Error code 255, while making 'subdirs' GMPASSOS/LibZip-0.06.tar.gz C:\STRAWB~1\c\bin\dmake.exe -- NOT OK Stopping: 'install' failed for 'LibZip'. Failed during this command: GMPASSOS/LibZip-0.06.tar.gz : make NO
Can somebody help me out? I've tried this on Windows Server 2012R2 and Windows 7 64bit.

Replies are listed 'Best First'.
Re: Install Perl module LibZip on Windows
by dasgar (Priest) on Sep 15, 2015 at 17:15 UTC

    Looking at LibZip's CPAN Testers Matrix, there is a very low successful install rate for the module across all OS platforms. The combination of the fact that the latest release was in December 2014 and literally no bug reports submitted for the module makes it difficult to determine if the author is actively working on improving/fixing the module.

    Aside from submitting a bug report, you may need to find an alternative module and I don't have a recommendation for an alternative.

Re: Install Perl module LibZip on Windows
by Anonymous Monk on Sep 15, 2015 at 10:22 UTC
    Use PAR INSTEAD
      I've used PAR in the past (on Linux).
      Why are you suggesting to use PAR? Is it better or more widely used than LibZip?

        I've used PAR in the past (on Linux). Why are you suggesting to use PAR? Is it better or more widely used than LibZip?

        Because , why LibZip?

        LibZip never saw much use, GMPASSOS has been gone for ten years, and even ten years ago PAR was a more active better maintained project

        last release of LibZip was 11 years ago ... in all that time no bur reports rt://LibZip

        Even in 2003, the "heyday" of LibZip, floppy drives were dead ... and WIN64 was rare

        PAR is still maintained and still compiles and produces executable

        If PAR isn't to your liking there is always citrusperl( createdistribution/createexecutable ) or cavapackager or just plain portable strawberryperl

        There is even , in a similar spirit as LiBZip, App::staticperl - perl, libc, 100 modules, all in one standalone 500kb file, but look at the testers matrix :)

        update: Now I've had a chance to look at it, edit LibZip-0.06\myldr\Makefile.PL and add  $res = ''; somewhere before  open OUT