perl cpanminus error installing GD::Image cc1: error: unrecognized command line option "-fstack-protector" - perl

I'm using cpanm to install GD::Image. This is on a Linux system with no root privileges, so I thought this would be the easiest way.
Apparently GD compilation fails:
cpanm (App::cpanminus) 1.4007 on perl 5.008008 built for x86_64-linux-thread-multi
Work directory is /homes/avilella/.cpanm/work/1310719630.11564
You have make /usr/bin/make
You have /usr/bin/wget
You have /bin/tar: tar (GNU tar) 1.15.1
You have /usr/bin/unzip
Searching GD::Image on cpanmetadb ...
-> FAIL Finding GD::Image on cpanmetadb failed.
Searching GD::Image on search.cpan.org ...
Checking if you have ExtUtils::MakeMaker 6.31 ... Yes (6.58)
Checking if you have ExtUtils::Install 1.46 ... Yes (1.54)
Checking if you have Module::Build 0.36 ... No
==> Found dependencies: Module::Build
Searching Module::Build on cpanmetadb ...
--> Working on Module::Build
Fetching http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/Module-Build-0.3800.tar.gz
-> OK
Unpacking Module-Build-0.3800.tar.gz
Entering Module-Build-0.3800
Checking configure dependencies from META.yml
Configuring Module-Build-0.3800
Running Build.PL
Checking prerequisites...
requires:
! ExtUtils::CBuilder is not installed
Checking optional features...
dist_authoring..........disabled
requires:
! Archive::Tar is not installed
recommends:
* Pod::Readme is not installed
ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the versions
of the modules indicated above before proceeding with this installation
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Module-Build' version '0.3800'
-> OK
Checking dependencies from MYMETA.yml ...
Checking if you have Module::Metadata 1.000002 ... Yes (1.000004)
Checking if you have File::Spec 0.82 ... Yes (3.12)
Checking if you have ExtUtils::Install 0 ... Yes (1.54)
Checking if you have File::Compare 0 ... Yes (1.1003)
Checking if you have File::Find 0 ... Yes (1.10)
Checking if you have File::Path 0 ... Yes (1.08)
Checking if you have CPAN::Meta 2.110420 ... Yes (2.110930001)
Checking if you have Perl::OSType 1 ... Yes (1.002)
Checking if you have ExtUtils::CBuilder 0.27 ... No
Checking if you have ExtUtils::Manifest 0 ... Yes (1.58)
Checking if you have Text::Abbrev 0 ... Yes (1.01)
Checking if you have Test::Harness 0 ... Yes (3.23)
Checking if you have File::Copy 0 ... Yes (2.09)
Checking if you have Getopt::Long 0 ... Yes (2.35)
Checking if you have IO::File 0 ... Yes (1.13)
Checking if you have version 0.87 ... Yes (0.88)
Checking if you have Data::Dumper 0 ... Yes (2.121_08)
Checking if you have ExtUtils::ParseXS 2.21 ... Yes (2.2206)
Checking if you have Text::ParseWords 0 ... Yes (3.24)
Checking if you have File::Basename 0 ... Yes (2.74)
Checking if you have ExtUtils::Mkbootstrap 0 ... Yes (6.58)
Checking if you have Cwd 0 ... Yes (3.12)
Checking if you have Test::More 0.49 ... Yes (0.98)
Checking if you have Test::Harness 3.16 ... Yes (3.23)
Checking if you have Parse::CPAN::Meta 1.4401 ... Yes (1.4401)
Checking if you have File::Temp 0.15 ... Yes (0.22)
==> Found dependencies: ExtUtils::CBuilder
Searching ExtUtils::CBuilder on cpanmetadb ...
--> Working on ExtUtils::CBuilder
Fetching http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/ExtUtils-CBuilder-0.280202.tar.gz
-> OK
Unpacking ExtUtils-CBuilder-0.280202.tar.gz
Entering ExtUtils-CBuilder-0.280202
Checking configure dependencies from META.yml
Checking if you have ExtUtils::MakeMaker 6.31 ... Yes (6.58)
Configuring ExtUtils-CBuilder-0.280202
Running Makefile.PL
Warning: prerequisite File::Spec 3.13 not found. We have 3.12.
Checking if your kit is complete...
Looks good
Writing Makefile for ExtUtils::CBuilder
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.yml ...
Finding PREREQ from Makefile ...
Checking if you have Text::ParseWords 0 ... Yes (3.24)
Checking if you have IO::File 0 ... Yes (1.13)
Checking if you have File::Temp 0 ... Yes (0.22)
Checking if you have File::Spec 3.13 ... No (3.12 < 3.13)
Checking if you have IPC::Cmd 0 ... Yes (0.72)
Checking if you have File::Basename 0 ... Yes (2.74)
Checking if you have Cwd 0 ... Yes (3.12)
Checking if you have Test::More 0.47 ... Yes (0.98)
Checking if you have Test::More 0.47 ... Yes (0.98)
Checking if you have Text::ParseWords 0 ... Yes (3.24)
Checking if you have IO::File 0 ... Yes (1.13)
Checking if you have File::Temp 0 ... Yes (0.22)
Checking if you have IPC::Cmd 0 ... Yes (0.72)
Checking if you have File::Basename 0 ... Yes (2.74)
Checking if you have Cwd 0 ... Yes (3.12)
==> Found dependencies: File::Spec
Searching File::Spec on cpanmetadb ...
--> Working on File::Spec
Fetching http://search.cpan.org/CPAN/authors/id/S/SM/SMUELLER/PathTools-3.33.tar.gz
-> OK
Unpacking PathTools-3.33.tar.gz
Entering PathTools-3.33
Checking configure dependencies from META.yml
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.58)
Configuring PathTools-3.33
Running Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Cwd
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.yml ...
Finding PREREQ from Makefile ...
Checking if you have Scalar::Util 0 ... Yes (1.21)
Checking if you have Test 0 ... Yes (1.25)
Checking if you have File::Path 0 ... Yes (1.08)
Checking if you have File::Basename 0 ... Yes (2.74)
Checking if you have Carp 0 ... Yes (1.04)
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.58)
Checking if you have Scalar::Util 0 ... Yes (1.21)
Checking if you have Test 0 ... Yes (1.25)
Checking if you have File::Path 0 ... Yes (1.08)
Checking if you have File::Basename 0 ... Yes (2.74)
Checking if you have Carp 0 ... Yes (1.04)
Building PathTools-3.33
cp lib/File/Spec/OS2.pm blib/lib/File/Spec/OS2.pm
cp lib/File/Spec/Mac.pm blib/lib/File/Spec/Mac.pm
cp lib/File/Spec/VMS.pm blib/lib/File/Spec/VMS.pm
cp lib/File/Spec/Cygwin.pm blib/lib/File/Spec/Cygwin.pm
cp lib/File/Spec/Functions.pm blib/lib/File/Spec/Functions.pm
cp lib/File/Spec/Epoc.pm blib/lib/File/Spec/Epoc.pm
cp lib/File/Spec.pm blib/lib/File/Spec.pm
cp Cwd.pm blib/lib/Cwd.pm
cp lib/File/Spec/Unix.pm blib/lib/File/Spec/Unix.pm
cp lib/File/Spec/Win32.pm blib/lib/File/Spec/Win32.pm
/usr/bin/perl /homes/avilella/src/lookseq/lookseq/deps/lib/perl5/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap Cwd.xs > Cwd.xsc && mv Cwd.xsc Cwd.c
gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"3.33\" -DXS_VERSION=\"3.33\" -fPIC "-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE" Cwd.c
cc1: error: unrecognized command line option "-fstack-protector"
cc1: error: invalid parameter `ssp-buffer-size'
Cwd.c:1: error: bad value (generic) for -mtune= switch
make: *** [Cwd.o] Error 1
-> FAIL Installing File::Spec failed. See /homes/avilella/.cpanm/build.log for details.
-> FAIL Bailing out the installation for ExtUtils-CBuilder-0.280202. Retry with --prompt or --force.
-> FAIL Bailing out the installation for Module-Build-0.3800. Retry with --prompt or --force.
--> Working on GD::Image
Fetching http://search.cpan.org/CPAN/authors/id/L/LD/LDS/GD-2.46.tar.gz
-> OK
Unpacking GD-2.46.tar.gz
Entering GD-2.46
Checking configure dependencies from META.yml
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.58)
Configuring GD-2.46
Running Makefile.PL
Notice: Type perl Makefile.PL -h for command-line option summary.
Configuring for libgd version 2.0.33.
Checking for stray libgd header files...
** WARNING: found gd.h header file in /usr/includegd.h, but it is expected at /ebi/research/software/Linux_x86_64/opt/stow/gd-2.0.33/include/gd.h. This may cause compile errors! **
** WARNING: found gd.h header file in /usr/includegd.h, but it is expected at /ebi/research/software/Linux_x86_64/opt/stow/gd-2.0.33/include/gd.h. This may cause compile errors! **
** Possible problems found **
Included Features: GD_XPM GD_JPEG GD_FONTCONFIG GD_FREETYPE GD_PNG GD_GIF GD_UNCLOSEDPOLY GD_ANIMGIF GD_FTCIRCLE VERSION_33
GD library used from: /ebi/research/software/Linux_x86_64/opt/stow/gd-2.0.33
Checking if your kit is complete...
Looks good
Writing Makefile for GD
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.yml ...
Finding PREREQ from Makefile ...
Checking if you have Math::Trig 0 ... Yes (1.03)
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.58)
Checking if you have Math::Trig 0 ... Yes (1.03)
Building and testing GD-2.46
/usr/bin/perl GD/Image.pm.PLS GD/Image.pm
Extracting Image.pm (with variable substitutions)
cp GD/Polyline.pm blib/lib/GD/Polyline.pm
cp qd.pl blib/lib/qd.pl
cp GD/Image.pm blib/lib/GD/Image.pm
cp GD.pm blib/lib/GD.pm
AutoSplitting blib/lib/GD.pm (blib/lib/auto/GD)
cp GD/Simple.pm blib/lib/GD/Simple.pm
cp GD/Polygon.pm blib/lib/GD/Polygon.pm
cp GD/Group.pm blib/lib/GD/Group.pm
/usr/bin/perl /homes/avilella/src/lookseq/lookseq/deps/lib/perl5/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap GD.xs > GD.xsc && mv GD.xsc GD.c
gcc -c -I/ebi/research/software/Linux_x86_64/opt/stow/gd-2.0.33/include -Wformat=0 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"2.46\" -DXS_VERSION=\"2.46\" -fPIC "-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE" -DHAVE_JPEG -DHAVE_FT -DHAVE_XPM -DHAVE_GIF -DHAVE_PNG -DHAVE_ANIMGIF -DVERSION_33 -DHAVE_UNCLOSEDPOLY -DHAVE_FONTCONFIG -DHAVE_FTCIRCLE GD.c
cc1: error: unrecognized command line option "-fstack-protector"
cc1: error: invalid parameter `ssp-buffer-size'
GD.c:1: error: bad value (generic) for -mtune= switch
make: *** [GD.o] Error 1
-> FAIL Installing GD::Image failed. See /homes/avilella/.cpanm/build.log for details.
Any ideas?

cpanm doesn't have special support for installation without root rights if you use the system perl.
1) You can use perlbrew and compile your own perl into your home. After that you can just use cpanm in your "home perl".
2) You can use local::lib it sets up an environment that uses the system perl, but you install the modules to your home directory. After you did the setup described in local::lib it can work with cpanm.
If it still fails to install. Please provide the full log. cpanm says at the end that detailed information are in "/homes/avilella/.cpanm/build.log". If you install XS Modules sometimes you need to install some header files or other stuff. From the error messages from the build log you often can see why it fails. But you need to provide the file.

Related

find correct version of Perl library function List::Util

MaxMind GeoIP was working on Mojave, called from Perl.
I tried to upgrade my macOS installation from Perl 5.26 to 5.30.
Used MacPorts to install and activate 5.30, and then
used CPAN to install Perl modules.
Several ports got errors trying to install. I had to force them.
GeoIP2::Database::Reader (2.006002)
MaxMind::DB::Reader (1.000014)
NetAddr::IP (4.079)
Tried it out and it failed because a Perl module was down-rev.
[thvv lib]$ ipcity
Could not find a suitable MaxMind::DB::Reader implementation: List::Util version 1.56 required--this is only version 1.5 at /opt/local/lib/perl5/site_perl/5.30/List/AllUtils.pm line 8.
In CPAN I tried to install List::Util. It says version 1.56 is already installed.
cpan[4]> i List::Util
Module id = List::Util
CPAN_USERID PEVANS (Paul Evans <leonerd#leonerd.org.uk>)
CPAN_VERSION 1.56
CPAN_FILE P/PE/PEVANS/Scalar-List-Utils-1.56.tar.gz
MANPAGE List::Util - A selection of general-utility list subroutines
INST_FILE /opt/local/lib/perl5/site_perl/5.30/darwin-thread-multi-2level/List/Util.pm
INST_VERSION 1.56
my environment all points to Perl version 5.30
perl --version
This is perl 5, version 30, subversion 3 (v5.30.3) built for darwin-thread-multi-2level
env | grep 5.30
PERL5LIB=/Users/thvv/bin:/opt/local/lib/perl5/5.30
PERL_MB_OPT=--install_base "/opt/local/lib/perl5/5.30"
PERL_LOCAL_LIB_ROOT=/opt/local/lib/perl5/5.30
PERL_MM_OPT=INSTALL_BASE=/opt/local/lib/perl5/5.30
How can I get List::AllUtils to find the version of List::Util that is installed?
(Friday 23 July 2021) Added info as requested:
[thvv lib]$ head -1 ~/bin/ipcity
#!/usr/local/bin/perl -I/usr/home/thvv/bin
-- (tried it without the -I clause and got the same output)
[thvv bin]$ perl -MList::Util=999 -e1
List::Util version 999 required--this is only version 1.5 at /opt/local/lib/perl5/5.30/Exporter/Heavy.pm line 125.
BEGIN failed--compilation aborted.
--- looking in my file system for the module
[thvv bin]$ ls -l /opt/local/lib/perl5/5.30//darwin-thread-multi-2level/List/
total 16
-r--r--r--+ 1 root admin 21126 Jul 1 06:52 Util.pm
drwxr-xr-x+ 3 root admin 96 Jul 18 12:05 Util/
[thvv bin]$ ls -l /opt/local/lib/perl5/5.30//darwin-thread-multi-2level/List/Util
total 0
-r--r--r--+ 1 root admin 1018 Jul 1 06:52 XS.pm
--- I also invoked cpan and did a 'force install List::Util'
Running install for module 'List::Util'
Fetching with LWP:
http://www.cpan.org/authors/id/P/PE/PEVANS/CHECKSUMS
Checksum for /var/root/.cpan/sources/authors/id/P/PE/PEVANS/Scalar-List-Utils-1.56.tar.gz ok
Scanning cache /var/root/.cpan/build for sizes
............................................................................DONE
Configuring P/PE/PEVANS/Scalar-List-Utils-1.56.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for List::Util
Writing MYMETA.yml and MYMETA.json
PEVANS/Scalar-List-Utils-1.56.tar.gz
/opt/local/bin/perl5.30 Makefile.PL -- OK
Running make for P/PE/PEVANS/Scalar-List-Utils-1.56.tar.gz
cp lib/Sub/Util.pm blib/lib/Sub/Util.pm
cp lib/List/Util.pm blib/lib/List/Util.pm
cp lib/List/Util/XS.pm blib/lib/List/Util/XS.pm
cp lib/Scalar/Util.pm blib/lib/Scalar/Util.pm
Running Mkbootstrap for Util ()
chmod 644 "Util.bs"
"/opt/local/bin/perl5.30" -MExtUtils::Command::MM -e 'cp_nonempty' -- Util.bs blib/arch/auto/List/Util/Util.bs 644
"/opt/local/bin/perl5.30" "/opt/local/lib/perl5/5.30/ExtUtils/xsubpp" -typemap '/opt/local/lib/perl5/5.30/ExtUtils/typemap' ListUtil.xs > ListUtil.xsc
mv ListUtil.xsc ListUtil.c
/usr/bin/cc -c -fno-common -DPERL_DARWIN -pipe -Os -fno-strict-aliasing -fstack-protector-strong -I/opt/local/include -DPERL_USE_SAFE_PUTENV -Wno-error=implicit-function-declaration -O3 -DVERSION=\"1.56\" -DXS_VERSION=\"1.56\" "-I/opt/local/lib/perl5/5.30/darwin-thread-multi-2level/CORE" -DPERL_EXT -DUSE_PPPORT_H ListUtil.c
rm -f blib/arch/auto/List/Util/Util.bundle
/usr/bin/cc -bundle -undefined dynamic_lookup -L/opt/local/lib -Wl,-headerpad_max_install_names -fstack-protector-strong ListUtil.o -o blib/arch/auto/List/Util/Util.bundle \
\
chmod 755 blib/arch/auto/List/Util/Util.bundle
Manifying 4 pod documents
PEVANS/Scalar-List-Utils-1.56.tar.gz
/usr/bin/make -- OK
Running make test for PEVANS/Scalar-List-Utils-1.56.tar.gz
"/opt/local/bin/perl5.30" -MExtUtils::Command::MM -e 'cp_nonempty' -- Util.bs blib/arch/auto/List/Util/Util.bs 644
PERL_DL_NONLAZY=1 "/opt/local/bin/perl5.30" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00version.t ......... ok
t/any-all.t ........... ok
t/blessed.t ........... ok
t/dualvar.t ........... ok
t/exotic_names.t ...... ok
t/first.t ............. ok
t/getmagic-once.t ..... ok
t/head-tail.t ......... ok
t/isvstring.t ......... ok
t/lln.t ............... ok
t/max.t ............... ok
t/maxstr.t ............ ok
t/mesh.t .............. ok
t/min.t ............... ok
t/minstr.t ............ ok
t/openhan.t ........... ok
t/pair.t .............. ok
t/product.t ........... ok
t/prototype.t ......... ok
t/readonly.t .......... ok
t/reduce.t ............ ok
t/reductions.t ........ ok
t/refaddr.t ........... ok
t/reftype.t ........... ok
t/rt-96343.t .......... ok
t/sample.t ............ ok
t/scalarutil-proto.t .. ok
t/shuffle.t ........... ok
t/stack-corruption.t .. ok
t/subname.t ........... ok
t/sum.t ............... ok
t/sum0.t .............. ok
t/tainted.t ........... ok
t/uniq.t .............. ok
t/uniqnum.t ........... ok
t/weak.t .............. ok
t/zip.t ............... ok
All tests successful.
Files=37, Tests=2144, 4 wallclock secs ( 0.24 usr 0.10 sys + 2.88 cusr 0.42 csys = 3.64 CPU)
Result: PASS
Lockfile removed.
PEVANS/Scalar-List-Utils-1.56.tar.gz
/usr/bin/make test -- OK
Running make install for PEVANS/Scalar-List-Utils-1.56.tar.gz
"/opt/local/bin/perl5.30" -MExtUtils::Command::MM -e 'cp_nonempty' -- Util.bs blib/arch/auto/List/Util/Util.bs 644
Manifying 4 pod documents
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Appending installation info to /opt/local/lib/perl5/5.30/darwin-thread-multi-2level/perllocal.pod
PEVANS/Scalar-List-Utils-1.56.tar.gz
/usr/bin/make install -- OK
(23 July 2021, more)
[thvv bin]$ which perl
/opt/local/bin/perl
[thvv bin]$ ls -l /opt/local/bin/perl
lrwxr-xr-x 1 root wheel 8 Jul 21 12:28 /opt/local/bin/perl# -> perl5.30
[thvv bin]$ file `which perl`
/opt/local/bin/perl: Mach-O 64-bit executable x86_64
(12:59 EDT 23 July 2021) tried looking at /opt/local/lib/perl5/5.30//darwin-thread-multi-2level/List/Util/XS.pm
this seems to be where the 1.5 comes from.
force installed it, no change
package List::Util::XS;
use strict;
use warnings;
use List::Util;
our $VERSION = "1.50"; # FIXUP
$VERSION = eval $VERSION; # FIXUP
1;
[snipped pod]
I tried editing /opt/local/lib/perl5/site_perl/5.30/List/AllUtils.pm to change 1.50 to 1.56. restarted the machine for luck. still fails at List/AllUtils.pm line 8, saying the current version is 1.50.
(24 Jul 2021 08:13 EDT) as requested by #ikegami
[thvv#Uly2 ~]$ echo 'o conf' | cpan | grep 'make\|mbuild'; set | grep ^PERL
make [/usr/bin/make]
make_arg []
make_install_arg []
make_install_make_command [sudo /usr/bin/make]
makepl_arg []
mbuild_arg []
mbuild_install_arg []
mbuild_install_build_command [sudo ./Build]
mbuildpl_arg []
PERL5LIB=/Users/thvv/bin:/opt/local/lib/perl5/5.30
PERL_LOCAL_LIB_ROOT=/opt/local/lib/perl5/5.30
PERL_MB_OPT='--install_base "/opt/local/lib/perl5/5.30"'
PERL_MM_OPT=INSTALL_BASE=/opt/local/lib/perl5/5.30
ok, I deleted Perl 5.30, installed 5.34, reloaded my Perl Modules.
It still fails.
Could not find a suitable MaxMind::DB::Reader implementation: List::Util version 1.56 required--this is only version 1.55 at /opt/local/lib/perl5/site_perl/5.34/List/AllUtils.pm line 8.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/site_perl/5.34/List/AllUtils.pm line 8.
The "use" line that failed in List::AllUtils looked for List::Util version 1.56. The .pm file for List::Util is in
/opt/local/lib/perl5/site_perl/5.34/darwin-thread-multi-2level/List/Util.pm
and calls
XSLoader::load('List::Util', $XS_VERSION)
with version 1.56. That in turn tries to invoke
/opt/local/lib/perl5/site_perl/5.34/darwin-thread-multi-2level/auto/List/Util/Util.bundle
which is a Mac binary file. It appears that XSLoader has not loaded the binary version of List::Util.
Aha. I see that /opt/local/lib/perl5/5.34 and /opt/local/lib/perl5/site_perl/5.34 are different directories with different contents. The files I loaded with CPAN went into site_perl/5.34. But List::Util is in 5.34.
Only one program had substantive code changes between the two directories.
So, on the Mac, should I change /opt/local/lib/perl5/site_perl/5.34/ to be a symlink to /opt/local/lib/perl5/5.34/ ?
ipcity uses /usr/local/bin/perl, which is a symlink to /opt/local/bin/perl. This is the first perl found in the path. Should we check the shebang of cpan, we'd find the same perl referenced (as evidenced by the output of the installation attempt). It's possible you have more than one installation of Perl, but there's one only involved here. Therefore, te issue isn't one of installing List::Util for the wrong perl.
Loading List::Util loads version reveals a version 1.5 was loaded. Yet version 1.56 was installed. This means the module was installed in a non-standard location, but perl wasn't told to look at that location.
Your environment informs module installers ExtUtils::MakeMaker and Module::Build to install modules under /opt/local/lib/perl5/5.30. Specifically, it informs the installers to install the .pm file in /opt/local/lib/perl5/5.30/lib/perl5 (or the corresponding arch dir), but perl is not told to look in this directory; it is told to look in /opt/local/lib/perl5/5.30. This is wrong, and the crux of the problem.
Fix PERL5LIB.
That said, it doesn't make sense to set PERL_MB_OPT
and PERL_MM_OPT when using a perl in /opt. The default installation paths of your perl you should already be sensible. You can see what they are using
perl -V:'.*inst.*'
Finally, if PERL_MB_OPT
and PERL_MM_OPT aren't set, it doesn't make sense to set PERL5LIB or PERL_LOCAL_LIB_ROOT either.
I suspect you should unset all four of those variables.

HTML-Parser distribution installing issue

I'm trying to install LWP::Simple, which has HTML-Parser as a dependency.
I was looking if my problem with the installation the HTML-Parser distribution module was resolved on any other posts but (at first glance) it seems to be nothing similar.
Here are the error messages that I got:
cpan[1]> install LWP::Simple
Reading '/home/valentinignacio/.cpan/Metadata'
Database was generated on Mon, 22 Mar 2021 00:17:03 GMT
Running install for module 'LWP::Simple'
Checksum for /home/valentinignacio/.cpan/sources/authors/id/O/OA/OALDERS/libwww-perl-6.53.tar.gz ok
Scanning cache /home/valentinignacio/.cpan/build for sizes
............................................................................DONE
'YAML' not installed, will not store persistent state
Configuring O/OA/OALDERS/libwww-perl-6.53.tar.gz with Makefile.PL
HTTP::Status already exists in PREREQ_PM (at version 6.07) -- need to do a sane metamerge! at Makefile.PL line 159.
HTTP::Status already exists in FallbackPrereqs (at version 6.07) -- need to do a sane metamerge! at Makefile.PL line 162.
Checking if your kit is complete...
Looks good
Warning: prerequisite HTML::Entities 0 not found.
Warning: prerequisite HTML::HeadParser 0 not found.
Generating a Unix-style Makefile
Writing Makefile for libwww::perl
Writing MYMETA.yml and MYMETA.json
OALDERS/libwww-perl-6.53.tar.gz
/home/valentinignacio/miniconda3/bin/perl Makefile.PL -- OK
Running make for O/OA/OALDERS/libwww-perl-6.53.tar.gz
---- Unsatisfied dependencies detected during ----
---- OALDERS/libwww-perl-6.53.tar.gz ----
HTML::Entities [requires]
HTML::HeadParser [requires]
Test::LeakTrace [build_requires,optional]
Running install for module 'HTML::Entities'
Checksum for /home/valentinignacio/.cpan/sources/authors/id/O/OA/OALDERS/HTML-Parser-3.76.tar.gz ok
Configuring O/OA/OALDERS/HTML-Parser-3.76.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for HTML::Parser
Writing MYMETA.yml and MYMETA.json
OALDERS/HTML-Parser-3.76.tar.gz
/home/valentinignacio/miniconda3/bin/perl Makefile.PL -- OK
Running make for O/OA/OALDERS/HTML-Parser-3.76.tar.gz
cp lib/HTML/HeadParser.pm blib/lib/HTML/HeadParser.pm
cp lib/HTML/Filter.pm blib/lib/HTML/Filter.pm
cp lib/HTML/Parser.pm blib/lib/HTML/Parser.pm
cp lib/HTML/PullParser.pm blib/lib/HTML/PullParser.pm
cp lib/HTML/Entities.pm blib/lib/HTML/Entities.pm
cp lib/HTML/TokeParser.pm blib/lib/HTML/TokeParser.pm
cp lib/HTML/LinkExtor.pm blib/lib/HTML/LinkExtor.pm
Running Mkbootstrap for Parser ()
chmod 644 "Parser.bs"
"/home/valentinignacio/miniconda3/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Parser.bs blib/arch/auto/HTML/Parser/Parser.bs 644
"/home/valentinignacio/miniconda3/bin/perl" "/home/valentinignacio/miniconda3/lib/5.32.0/ExtUtils/xsubpp" -typemap '/home/valentinignacio/miniconda3/lib/5.32.0/ExtUtils/typemap' -typemap '/home/valentinignacio/.cpan/build/HTML-Parser-3.76-4/typemap' Parser.xs > Parser.xsc
mv Parser.xsc Parser.c
/home/valentinignacio/miniconda3/bin/..//bin/x86_64-conda-linux-gnu-gcc -c -D_REENTRANT -D_GNU_SOURCE --sysroot=/home/valentinignacio/miniconda3/bin/..//x86_64-conda-linux-gnu/sysroot -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -DVERSION=\"3.76\" -DXS_VERSION=\"3.76\" -fPIC --sysroot=/home/valentinignacio/miniconda3/bin/..//x86_64-conda-linux-gnu/sysroot "-I/home/valentinignacio/miniconda3/lib/5.32.0/x86_64-linux-thread-multi/CORE" -DMARKED_SECTION Parser.c
/bin/sh: 1: /home/valentinignacio/miniconda3/bin/..//bin/x86_64-conda-linux-gnu-gcc: not found
make: *** [Makefile:358: Parser.o] Error 127
OALDERS/HTML-Parser-3.76.tar.gz
/usr/bin/make -- NOT OK
[continues]
This ultimately leads to a failure to install LWP::Simple.
[continued from above]
Running install for module 'HTML::HeadParser'
OALDERS/HTML-Parser-3.76.tar.gz
Has already been unwrapped into directory /home/valentinignacio/.cpan/build/HTML-Parser-3.76-4
OALDERS/HTML-Parser-3.76.tar.gz
Has already been prepared
OALDERS/HTML-Parser-3.76.tar.gz
Could not make: Unknown error
OALDERS/libwww-perl-6.53.tar.gz
Has already been unwrapped into directory /home/valentinignacio/.cpan/build/libwww-perl-6.53-4
OALDERS/libwww-perl-6.53.tar.gz
Has already been prepared
Running make for O/OA/OALDERS/libwww-perl-6.53.tar.gz
Warning: Prerequisite 'HTML::Entities => 0' for 'OALDERS/libwww-perl-6.53.tar.gz' failed when processing 'OALDERS/HTML-Parser-3.76.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
Warning: Prerequisite 'HTML::HeadParser => 0' for 'OALDERS/libwww-perl-6.53.tar.gz' failed when processing 'OALDERS/HTML-Parser-3.76.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
---- Unsatisfied dependencies detected during ----
---- OALDERS/libwww-perl-6.53.tar.gz ----
Test::LeakTrace [build_requires,optional]
cp lib/LWP/Protocol/nntp.pm blib/lib/LWP/Protocol/nntp.pm
cp lib/LWP/Protocol/nogo.pm blib/lib/LWP/Protocol/nogo.pm
cp lib/LWP/RobotUA.pm blib/lib/LWP/RobotUA.pm
cp lib/LWP/Debug.pm blib/lib/LWP/Debug.pm
cp lib/LWP/DebugFile.pm blib/lib/LWP/DebugFile.pm
cp lib/LWP/UserAgent.pm blib/lib/LWP/UserAgent.pm
cp lib/LWP/Protocol.pm blib/lib/LWP/Protocol.pm
cp lib/LWP/Protocol/ftp.pm blib/lib/LWP/Protocol/ftp.pm
cp lib/LWP/Authen/Digest.pm blib/lib/LWP/Authen/Digest.pm
cp lib/LWP/Debug/TraceHTTP.pm blib/lib/LWP/Debug/TraceHTTP.pm
cp lib/LWP/Protocol/cpan.pm blib/lib/LWP/Protocol/cpan.pm
cp lib/LWP/Simple.pm blib/lib/LWP/Simple.pm
cp lwpcook.pod blib/lib/libwww/lwpcook.pod
cp lib/LWP/Authen/Ntlm.pm blib/lib/LWP/Authen/Ntlm.pm
cp lib/LWP/Protocol/loopback.pm blib/lib/LWP/Protocol/loopback.pm
cp lib/LWP/Protocol/gopher.pm blib/lib/LWP/Protocol/gopher.pm
cp lib/LWP/ConnCache.pm blib/lib/LWP/ConnCache.pm
cp lib/LWP/Protocol/data.pm blib/lib/LWP/Protocol/data.pm
cp lwptut.pod blib/lib/libwww/lwptut.pod
cp lib/LWP/Protocol/file.pm blib/lib/LWP/Protocol/file.pm
cp lib/LWP/Authen/Basic.pm blib/lib/LWP/Authen/Basic.pm
cp lib/LWP/MemberMixin.pm blib/lib/LWP/MemberMixin.pm
cp lib/LWP.pm blib/lib/LWP.pm
cp lib/LWP/Protocol/mailto.pm blib/lib/LWP/Protocol/mailto.pm
cp lib/LWP/Protocol/http.pm blib/lib/LWP/Protocol/http.pm
cp bin/lwp-download blib/script/lwp-download
"/home/valentinignacio/miniconda3/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/lwp-download
cp bin/lwp-dump blib/script/lwp-dump
"/home/valentinignacio/miniconda3/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/lwp-dump
cp bin/lwp-mirror blib/script/lwp-mirror
"/home/valentinignacio/miniconda3/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/lwp-mirror
cp bin/lwp-request blib/script/lwp-request
"/home/valentinignacio/miniconda3/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/lwp-request
Manifying 4 pod documents
Manifying 11 pod documents
OALDERS/libwww-perl-6.53.tar.gz
/usr/bin/make -- OK
The current configuration of allow_installing_outdated_dists is 'ask/no', but for this option we would need 'CPAN::DistnameInfo' installed. Please install 'CPAN::DistnameInfo' as soon as possible. As long as we are not equipped with 'CPAN::DistnameInfo' this option does not take effect
Running make test for OALDERS/libwww-perl-6.53.tar.gz
PERL_DL_NONLAZY=1 "/home/valentinignacio/miniconda3/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/base/*.t t/base/protocols/*.t t/leak/*.t t/local/*.t t/robot/*.t
t/00-report-prereqs.t .......... #
# Versions for all modules listed in MYMETA.json (including optional ones):
#
# === Configure Requires ===
#
# Module Want Have
# ------------------------ -------- --------
# CPAN::Meta::Requirements 2.120620 2.140
# ExtUtils::MakeMaker any 7.44
# File::Copy any 2.34
# Getopt::Long any 2.51
# Module::Metadata any 1.000037
#
# === Build Requires ===
#
# Module Want Have
# ------------------- ---- ----
# ExtUtils::MakeMaker any 7.44
#
# === Test Requires ===
#
# Module Want Have
# ---------------------- ---- --------
# ExtUtils::MakeMaker any 7.44
# File::Spec any 3.78
# FindBin any 1.51
# HTTP::Daemon 6.12 6.12
# Test::Fatal any 0.016
# Test::More 0.96 1.302175
# Test::Needs any 0.002006
# Test::RequiresInternet any 0.05
#
# === Test Recommends ===
#
# Module Want Have
# --------------- -------- --------
# CPAN::Meta 2.120900 2.150010
# Test::LeakTrace any missing
#
# === Runtime Requires ===
#
# Module Want Have
# --------------------- ---- -------
# Digest::MD5 any 2.55_01
# Encode 2.12 3.06
# Encode::Locale any 1.05
# File::Listing 6 6.14
# HTML::Entities any missing
# HTML::HeadParser any missing
# HTTP::Cookies 6 6.10
# HTTP::Date 6 6.05
# HTTP::Negotiate 6 6.01
# HTTP::Request 6 6.29
# HTTP::Request::Common 6 6.29
# HTTP::Response 6 6.29
# HTTP::Status 6.18 6.29
# IO::Select any 1.42
# IO::Socket any 1.43
# LWP::MediaTypes 6 6.04
# MIME::Base64 2.1 3.15
# Net::FTP 2.58 3.11
# Net::HTTP 6.18 6.21
# Scalar::Util any 1.55
# Try::Tiny any 0.30
# URI 1.10 5.09
# URI::Escape any 5.09
# WWW::RobotRules 6 6.02
# base any 2.27
# strict any 1.11
# warnings any 1.47
#
# === Runtime Suggests ===
#
# Module Want Have
# -------------------- ---- -------
# Authen::NTLM 1.02 missing
# Data::Dump 1.13 missing
# IO::Socket::INET any 1.41
# LWP::Protocol::https 6.02 missing
#
#
# *** WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING ***
t/00-report-prereqs.t .......... 1/1 #
# The following REQUIRED prerequisites were not satisfied:
#
# HTML::Entities is not installed (any version required)
# HTML::HeadParser is not installed (any version required)
#
t/00-report-prereqs.t .......... ok
t/10-attrs.t ................... ok
t/base/default_content_type.t .. # Some tests for the PUT/PATCH methods can only be run on
# HTTP::Request version 6.07/6.12 or higher.
# If your version isn't good enough, we'll skip those.
# Your version is 6.29 and that's good enough
t/base/default_content_type.t .. ok
t/base/protocols.t ............. ok
t/base/protocols/nntp.t ........ skipped: nntp.perl.org is unstable and Test::RequiresInternet is not catching it
t/base/proxy.t ................. ok
t/base/simple.t ................ ok
t/base/ua.t .................... 1/?
# Failed test '$res->header("Content-Style-Type", "text/css")'
# at t/base/ua.t line 122.
# Failed test '$res->header("Content-Script-Type", "text/javascript")'
# at t/base/ua.t line 123.
# Looks like you failed 2 tests of 51.
t/base/ua.t .................... Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/51 subtests
t/base/ua_handlers.t ........... ok
t/leak/no_leak.t ............... skipped: Need Test::LeakTrace
t/local/autoload-get.t ......... 1/4
# Failed test 'Response was successful'
# at t/local/autoload-get.t line 26.
# Looks like you failed 1 test of 4.
t/local/autoload-get.t ......... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/4 subtests
t/local/autoload.t ............. 1/4
# Failed test 'Response was successful'
# at t/local/autoload.t line 29.
# <html>
# <head><title>An Error Occurred</title></head>
# <body>
# <h1>An Error Occurred</h1>
# <p>500 Can't locate HTML/Entities.pm in #INC (you may need to install the HTML::Entities module) (#INC contains: /home/valentinignacio/.cpan/build/libwww-perl-6.53-4/blib/lib /home/valentinignacio/.cpan/build/libwww-perl-6.53-4/blib/arch /home/valentinignacio/miniconda3/lib/site_perl/5.32.0/x86_64-linux-thread-multi /home/valentinignacio/miniconda3/lib/site_perl/5.32.0 /home/valentinignacio/miniconda3/lib/5.32.0/x86_64-linux-thread-multi /home/valentinignacio/miniconda3/lib/5.32.0 .)</p>
# </body>
# </html>
# Looks like you failed 1 test of 4.
t/local/autoload.t ............. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/4 subtests
t/local/get.t .................. ok
t/local/http.t ................. 1/130
# Failed test 'get file: good title'
# at t/local/http.t line 178.
# got: undef
# expected: 'En pr�ve'
# Failed test 'get file: good content'
# at t/local/http.t line 179.
# ''
# doesn't match '(?^u:� v�re)'
# Failed test 'terminate: bye bye'
# at t/local/http.t line 438.
# ''
# doesn't match '(?^:Bye, bye)'
# Looks like you failed 3 tests of 130.
t/local/http.t ................. Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/130 subtests
t/local/httpsub.t .............. ok
t/local/protosub.t ............. ok
t/redirect.t ................... ok
t/robot/ua-get.t ............... ok
t/robot/ua.t ................... ok
Test Summary Report
-------------------
t/base/ua.t (Wstat: 512 Tests: 51 Failed: 2)
Failed tests: 20-21
Non-zero exit status: 2
t/local/autoload-get.t (Wstat: 256 Tests: 4 Failed: 1)
Failed test: 4
Non-zero exit status: 1
t/local/autoload.t (Wstat: 256 Tests: 4 Failed: 1)
Failed test: 4
Non-zero exit status: 1
t/local/http.t (Wstat: 768 Tests: 130 Failed: 3)
Failed tests: 37-38, 129
Non-zero exit status: 3
Files=19, Tests=269, 17 wallclock secs ( 0.06 usr 0.03 sys + 1.64 cusr 0.20 csys = 1.93 CPU)
Result: FAIL
Failed 4/19 test programs. 7/269 subtests failed.
make: *** [Makefile:1029: test_dynamic] Error 255
Lockfile removed.
OALDERS/libwww-perl-6.53.tar.gz
2 dependencies missing (HTML::Entities,HTML::HeadParser); additionally test harness failed
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports OALDERS/libwww-perl-6.53.tar.gz
Running install for module 'Test::LeakTrace'
Checksum for /home/valentinignacio/.cpan/sources/authors/id/L/LE/LEEJO/Test-LeakTrace-0.17.tar.gz ok
Configuring L/LE/LEEJO/Test-LeakTrace-0.17.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Test::LeakTrace
Writing MYMETA.yml and MYMETA.json
LEEJO/Test-LeakTrace-0.17.tar.gz
/home/valentinignacio/miniconda3/bin/perl Makefile.PL -- OK
Running make for L/LE/LEEJO/Test-LeakTrace-0.17.tar.gz
cp lib/Test/LeakTrace/JA.pod blib/lib/Test/LeakTrace/JA.pod
cp lib/Test/LeakTrace.pm blib/lib/Test/LeakTrace.pm
cp lib/Test/LeakTrace/Script.pm blib/lib/Test/LeakTrace/Script.pm
Running Mkbootstrap for LeakTrace ()
chmod 644 "LeakTrace.bs"
"/home/valentinignacio/miniconda3/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- LeakTrace.bs blib/arch/auto/Test/LeakTrace/LeakTrace.bs 644
"/home/valentinignacio/miniconda3/bin/perl" "/home/valentinignacio/miniconda3/lib/5.32.0/ExtUtils/xsubpp" -typemap '/home/valentinignacio/miniconda3/lib/5.32.0/ExtUtils/typemap' LeakTrace.xs > LeakTrace.xsc
mv LeakTrace.xsc LeakTrace.c
/home/valentinignacio/miniconda3/bin/..//bin/x86_64-conda-linux-gnu-gcc -c -D_REENTRANT -D_GNU_SOURCE --sysroot=/home/valentinignacio/miniconda3/bin/..//x86_64-conda-linux-gnu/sysroot -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -DVERSION=\"0.17\" -DXS_VERSION=\"0.17\" -fPIC --sysroot=/home/valentinignacio/miniconda3/bin/..//x86_64-conda-linux-gnu/sysroot "-I/home/valentinignacio/miniconda3/lib/5.32.0/x86_64-linux-thread-multi/CORE" LeakTrace.c
/bin/sh: 1: /home/valentinignacio/miniconda3/bin/..//bin/x86_64-conda-linux-gnu-gcc: not found
make: *** [Makefile:340: LeakTrace.o] Error 127
LEEJO/Test-LeakTrace-0.17.tar.gz
/usr/bin/make -- NOT OK
Running install for module 'Test::LeakTrace'
LEEJO/Test-LeakTrace-0.17.tar.gz
Has already been unwrapped into directory /home/valentinignacio/.cpan/build/Test-LeakTrace-0.17-4
LEEJO/Test-LeakTrace-0.17.tar.gz
Has already been prepared
LEEJO/Test-LeakTrace-0.17.tar.gz
Could not make: Unknown error
Failed during this command:
OALDERS/HTML-Parser-3.76.tar.gz : make NO
OALDERS/libwww-perl-6.53.tar.gz : make_test NO 2 dependencies missing (HTML::Entities,HTML::HeadParser); additionally test harness failed
(optional) LEEJO/Test-LeakTrace-0.17.tar.gz : make NO
What can I do? I Tried to install manually the dependencies (Entities and HeadParser) but I got the next unknown errors for both:
cpan[3]> install HTML::Entities
Running install for module 'HTML::Entities'
OALDERS/HTML-Parser-3.76.tar.gz
Has already been unwrapped into directory /home/valentinignacio/.cpan/build/HTML-Parser-3.76-4
OALDERS/HTML-Parser-3.76.tar.gz
Has already been prepared
OALDERS/HTML-Parser-3.76.tar.gz
Could not make: Unknown error
I'll be so thankful if you can help me with this :)
This is the relevant line:
/bin/sh: 1: /home/valentinignacio/miniconda3/bin/..//bin/x86_64-conda-linux-gnu-gcc: not found
perl was built using a compiler found at /home/valentinignacio/miniconda3/bin/x86_64-conda-linux-gnu-gcc, but it no longer exists at that location.[1] It is needed, so reinstall it.
Once this is rectified, run cpan LWP::Simple again. You may need to run the following command in cpan first:
o conf build_dir_reuse 0
o conf commit
This resets the build_dir_reuse setting back to its default value. The default value of this settings causes the "Has already been unwrapped into directory" and "Has already been prepared" checks to be avoided, forcing a sincere attempt to install the module even if a previous attempt failed.
Ok, technically, you copied the perl installation from another machine (by installing the appropriate package), but didn't copy over gcc (by installing the appropriate package). Potato potahto.

Can't Install Net::Amazon::S3

I'm having troubles installing the Net::Amazon::S3 package for perl on my Win 10 machine running 32 bit Strawberry Perl.
I try to install the package with cpanm:
λ cpanm Net::Amazon::S3
--> Working on Net::Amazon::S3
Fetching http://www.cpan.org/authors/id/L/LL/LLAP/Net-Amazon-S3-0.89.tar.gz ... OK
Configuring Net-Amazon-S3-0.89 ... OK
Building and testing Net-Amazon-S3-0.89 ... FAIL
! Installing Net::Amazon::S3 failed. See C:\Users\MyUsername\.cpanm\work\1595972364.5912\build.log for details. Retry with --force to force install it.
the contents of build.log:
cpanm (App::cpanminus) 1.7044 on perl 5.030002 built for MSWin32-x86-multi-thread-64int
Work directory is C:\Users\MyUsername/.cpanm/work/1595972364.5912
You have make C:\Strawberry\c\bin\gmake.exe
You have LWP 6.43
You have G:\laragon\bin\git\usr\bin\tar.exe, G:\laragon\bin\git\usr\bin\gzip.exe and G:\laragon\bin\git\usr\bin\bzip2.exe
You have G:\laragon\bin\git\usr\bin\unzip.exe
Searching Net::Amazon::S3 () on cpanmetadb ...
--> Working on Net::Amazon::S3
Fetching http://www.cpan.org/authors/id/L/LL/LLAP/Net-Amazon-S3-0.89.tar.gz
-> OK
Unpacking Net-Amazon-S3-0.89.tar.gz
Entering Net-Amazon-S3-0.89
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.44)
Configuring Net-Amazon-S3-0.89
Running Makefile.PL
Checking if your kit is complete...
Looks good
Generating a gmake-style Makefile
Writing Makefile for Net::Amazon::S3
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have Moose::Meta::Class 0 ... Yes (2.2012)
Checking if you have Digest::MD5 0 ... Yes (2.55)
Checking if you have strict 0 ... Yes (1.11)
Checking if you have Sub::Override 0 ... Yes (0.09)
Checking if you have HTTP::Date 0 ... Yes (6.05)
Checking if you have Test::More 0 ... Yes (1.302172)
Checking if you have Test::MockTime 0 ... Yes (0.17)
Checking if you have Moose::Object 0 ... Yes (2.2012)
Checking if you have Term::Encoding 0 ... Yes (0.03)
Checking if you have DateTime::Format::HTTP 0 ... Yes (0.42)
Checking if you have Exporter::Tiny 0 ... Yes (1.002001)
Checking if you have Carp 0 ... Yes (1.50)
Checking if you have Moose::Util 0 ... Yes (2.2012)
Checking if you have File::Temp 0 ... Yes (0.2309)
Checking if you have MIME::Types 0 ... Yes (2.17)
Checking if you have Path::Class 0 ... Yes (0.37)
Checking if you have Term::ProgressBar::Simple 0 ... Yes (0.03)
Checking if you have Moose 0.85 ... Yes (2.2012)
Checking if you have MooseX::Role::Parameterized 0 ... Yes (1.11)
Checking if you have MooseX::Types::DateTime::MoreCoercions 0.07 ... Yes (0.15)
Checking if you have URI::Escape 0 ... Yes (3.31)
Checking if you have MIME::Base64 0 ... Yes (3.15)
Checking if you have MooseX::StrictConstructor 0.16 ... Yes (0.21)
Checking if you have Digest::MD5::File 0 ... Yes (0.08)
Checking if you have sort 0 ... Yes (2.04)
Checking if you have Test::Deep 0 ... Yes (1.130)
Checking if you have FindBin 0 ... Yes (1.51)
Checking if you have parent 0 ... Yes (0.238)
Checking if you have Scalar::Util 0 ... Yes (1.54)
Checking if you have Hash::Util 0 ... Yes (0.22)
Checking if you have Moose::Util::TypeConstraints 0 ... Yes (2.2012)
Checking if you have namespace::clean 0 ... Yes (0.27)
Checking if you have XML::LibXML::XPathContext 0 ... Yes (2.0203)
Checking if you have Digest::HMAC_SHA1 0 ... Yes (1.03)
Checking if you have File::stat 0 ... Yes (1.08)
Checking if you have vars 0 ... Yes (1.05)
Checking if you have Time::Piece 0 ... Yes (1.34)
Checking if you have Test::LoadAllModules 0 ... Yes (0.022)
Checking if you have IO::File 1.14 ... Yes (1.41)
Checking if you have Test::Warnings 0 ... Yes (0.029)
Checking if you have HTTP::Status 0 ... Yes (6.22)
Checking if you have warnings 0 ... Yes (1.44)
Checking if you have URI::QueryParam 0 ... Yes (1.76)
Checking if you have LWP 6.03 ... Yes (6.43)
Checking if you have Getopt::Long 0 ... Yes (2.51)
Checking if you have Regexp::Common 0 ... Yes (2017060201)
Checking if you have LWP::Simple 0 ... Yes (6.43)
Checking if you have File::Find::Rule 0 ... Yes (0.34)
Checking if you have Test::Exception 0 ... Yes (0.43)
Checking if you have URI 0 ... Yes (1.76)
Checking if you have Moose::Role 0 ... Yes (2.2012)
Checking if you have Ref::Util 0 ... Yes (0.204)
Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.44)
Checking if you have Data::Stream::Bulk::Callback 0 ... Yes (0.11)
Checking if you have XML::LibXML 0 ... Yes (2.0203)
Checking if you have HTTP::Response 0 ... Yes (6.22)
Checking if you have lib 0 ... Yes (0.65)
Checking if you have Pod::Usage 0 ... Yes (1.70)
Checking if you have Digest::SHA 0 ... Yes (6.02)
Checking if you have LWP::UserAgent::Determined 0 ... Yes (1.07)
Building and testing Net-Amazon-S3-0.89
cp lib/Net/Amazon/S3/Client/Object.pm blib\lib\Net\Amazon\S3\Client\Object.pm
cp lib/Net/Amazon/S3/Request/CompleteMultipartUpload.pm blib\lib\Net\Amazon\S3\Request\CompleteMultipartUpload.pm
cp lib/Net/Amazon/S3/Bucket.pm blib\lib\Net\Amazon\S3\Bucket.pm
cp lib/Net/Amazon/S3/Request/Bucket.pm blib\lib\Net\Amazon\S3\Request\Bucket.pm
cp lib/Net/Amazon/S3/Features.pod blib\lib\Net\Amazon\S3\Features.pod
cp lib/Net/Amazon/S3.pm blib\lib\Net\Amazon\S3.pm
cp lib/Net/Amazon/S3/Request.pm blib\lib\Net\Amazon\S3\Request.pm
cp lib/Net/Amazon/S3/Client.pm blib\lib\Net\Amazon\S3\Client.pm
cp lib/Net/Amazon/S3/HTTPRequest.pm blib\lib\Net\Amazon\S3\HTTPRequest.pm
cp lib/Net/Amazon/S3/Request/DeleteObject.pm blib\lib\Net\Amazon\S3\Request\DeleteObject.pm
cp lib/Net/Amazon/S3/Request/AbortMultipartUpload.pm blib\lib\Net\Amazon\S3\Request\AbortMultipartUpload.pm
cp lib/Net/Amazon/S3/Request/DeleteBucket.pm blib\lib\Net\Amazon\S3\Request\DeleteBucket.pm
cp lib/Net/Amazon/S3/Client/Bucket.pm blib\lib\Net\Amazon\S3\Client\Bucket.pm
cp lib/Net/Amazon/S3/Request/CreateBucket.pm blib\lib\Net\Amazon\S3\Request\CreateBucket.pm
cp lib/Net/Amazon/S3/Request/DeleteMultiObject.pm blib\lib\Net\Amazon\S3\Request\DeleteMultiObject.pm
cp lib/Net/Amazon/S3/Request/ListAllMyBuckets.pm blib\lib\Net\Amazon\S3\Request\ListAllMyBuckets.pm
cp lib/Net/Amazon/S3/Request/ListBucket.pm blib\lib\Net\Amazon\S3\Request\ListBucket.pm
cp lib/Net/Amazon/S3/Request/Role/HTTP/Header/Acl_short.pm blib\lib\Net\Amazon\S3\Request\Role\HTTP\Header\Acl_short.pm
cp lib/Net/Amazon/S3/Request/GetBucketLocationConstraint.pm blib\lib\Net\Amazon\S3\Request\GetBucketLocationConstraint.pm
cp lib/Net/Amazon/S3/Request/GetBucketAccessControl.pm blib\lib\Net\Amazon\S3\Request\GetBucketAccessControl.pm
cp lib/Net/Amazon/S3/Request/Role/HTTP/Header.pm blib\lib\Net\Amazon\S3\Request\Role\HTTP\Header.pm
cp lib/Net/Amazon/S3/Request/Object.pm blib\lib\Net\Amazon\S3\Request\Object.pm
cp lib/Net/Amazon/S3/Request/GetObject.pm blib\lib\Net\Amazon\S3\Request\GetObject.pm
cp lib/Net/Amazon/S3/Request/GetObjectAccessControl.pm blib\lib\Net\Amazon\S3\Request\GetObjectAccessControl.pm
cp lib/Net/Amazon/S3/Request/PutPart.pm blib\lib\Net\Amazon\S3\Request\PutPart.pm
cp lib/Net/Amazon/S3/Request/ListParts.pm blib\lib\Net\Amazon\S3\Request\ListParts.pm
cp lib/Net/Amazon/S3/Request/PutObject.pm blib\lib\Net\Amazon\S3\Request\PutObject.pm
cp lib/Net/Amazon/S3/Request/InitiateMultipartUpload.pm blib\lib\Net\Amazon\S3\Request\InitiateMultipartUpload.pm
cp lib/Net/Amazon/S3/Request/Role/HTTP/Header/Content_length.pm blib\lib\Net\Amazon\S3\Request\Role\HTTP\Header\Content_length.pm
cp lib/Net/Amazon/S3/Request/Role/HTTP/Method.pm blib\lib\Net\Amazon\S3\Request\Role\HTTP\Method.pm
cp lib/Net/Amazon/S3/Request/Role/HTTP/Method/GET.pm blib\lib\Net\Amazon\S3\Request\Role\HTTP\Method\GET.pm
cp lib/Net/Amazon/S3/Request/Role/HTTP/Header/Encryption.pm blib\lib\Net\Amazon\S3\Request\Role\HTTP\Header\Encryption.pm
cp lib/Net/Amazon/S3/Request/Role/HTTP/Header/Copy_source.pm blib\lib\Net\Amazon\S3\Request\Role\HTTP\Header\Copy_source.pm
cp lib/Net/Amazon/S3/Request/Role/HTTP/Method/PUT.pm blib\lib\Net\Amazon\S3\Request\Role\HTTP\Method\PUT.pm
cp lib/Net/Amazon/S3/Request/Role/Query/Action.pm blib\lib\Net\Amazon\S3\Request\Role\Query\Action.pm
cp lib/Net/Amazon/S3/Request/Role/HTTP/Header/Content_md5.pm blib\lib\Net\Amazon\S3\Request\Role\HTTP\Header\Content_md5.pm
cp lib/Net/Amazon/S3/Request/Role/HTTP/Method/POST.pm blib\lib\Net\Amazon\S3\Request\Role\HTTP\Method\POST.pm
cp lib/Net/Amazon/S3/Request/Role/HTTP/Header/Content_type.pm blib\lib\Net\Amazon\S3\Request\Role\HTTP\Header\Content_type.pm
cp lib/Net/Amazon/S3/Request/Role/HTTP/Method/DELETE.pm blib\lib\Net\Amazon\S3\Request\Role\HTTP\Method\DELETE.pm
cp lib/Net/Amazon/S3/Request/Role/Query/Param/Delimiter.pm blib\lib\Net\Amazon\S3\Request\Role\Query\Param\Delimiter.pm
cp lib/Net/Amazon/S3/Request/Role/Query/Action/Location.pm blib\lib\Net\Amazon\S3\Request\Role\Query\Action\Location.pm
cp lib/Net/Amazon/S3/Request/Role/Query/Action/Acl.pm blib\lib\Net\Amazon\S3\Request\Role\Query\Action\Acl.pm
cp lib/Net/Amazon/S3/Request/Role/Query/Action/Uploads.pm blib\lib\Net\Amazon\S3\Request\Role\Query\Action\Uploads.pm
cp lib/Net/Amazon/S3/Request/Role/Query/Param/Marker.pm blib\lib\Net\Amazon\S3\Request\Role\Query\Param\Marker.pm
cp lib/Net/Amazon/S3/Request/Role/Query/Action/Delete.pm blib\lib\Net\Amazon\S3\Request\Role\Query\Action\Delete.pm
cp lib/Net/Amazon/S3/Request/Role/Query/Param/Upload_id.pm blib\lib\Net\Amazon\S3\Request\Role\Query\Param\Upload_id.pm
cp lib/Net/Amazon/S3/Request/Role/Query/Param/Part_number.pm blib\lib\Net\Amazon\S3\Request\Role\Query\Param\Part_number.pm
cp lib/Net/Amazon/S3/Request/Role/Query/Param/Max_keys.pm blib\lib\Net\Amazon\S3\Request\Role\Query\Param\Max_keys.pm
cp lib/Net/Amazon/S3/Request/Role/Query/Param/Prefix.pm blib\lib\Net\Amazon\S3\Request\Role\Query\Param\Prefix.pm
cp lib/Net/Amazon/S3/Request/Role/Query/Param.pm blib\lib\Net\Amazon\S3\Request\Role\Query\Param.pm
cp lib/Net/Amazon/S3/Signature/V4.pm blib\lib\Net\Amazon\S3\Signature\V4.pm
cp lib/Net/Amazon/S3/Request/SetObjectAccessControl.pm blib\lib\Net\Amazon\S3\Request\SetObjectAccessControl.pm
cp lib/Net/Amazon/S3/Request/Service.pm blib\lib\Net\Amazon\S3\Request\Service.pm
cp lib/Net/Amazon/S3/Signature.pm blib\lib\Net\Amazon\S3\Signature.pm
cp lib/Net/Amazon/S3/Role/Bucket.pm blib\lib\Net\Amazon\S3\Role\Bucket.pm
cp lib/Shared/Examples/Net/Amazon/S3/API.pm blib\lib\Shared\Examples\Net\Amazon\S3\API.pm
cp lib/Shared/Examples/Net/Amazon/S3/Operation/Bucket/Create.pm blib\lib\Shared\Examples\Net\Amazon\S3\Operation\Bucket\Create.pm
cp lib/Shared/Examples/Net/Amazon/S3/Client.pm blib\lib\Shared\Examples\Net\Amazon\S3\Client.pm
cp lib/Shared/Examples/Net/Amazon/S3/Error.pm blib\lib\Shared\Examples\Net\Amazon\S3\Error.pm
cp lib/Net/Amazon/S3/Signature/V2.pm blib\lib\Net\Amazon\S3\Signature\V2.pm
cp lib/Shared/Examples/Net/Amazon/S3/ACL.pm blib\lib\Shared\Examples\Net\Amazon\S3\ACL.pm
cp lib/Shared/Examples/Net/Amazon/S3.pm blib\lib\Shared\Examples\Net\Amazon\S3.pm
cp lib/Net/Amazon/S3/Request/SetBucketAccessControl.pm blib\lib\Net\Amazon\S3\Request\SetBucketAccessControl.pm
cp lib/Net/Amazon/S3/Signature/V4Implementation.pm blib\lib\Net\Amazon\S3\Signature\V4Implementation.pm
cp lib/Shared/Examples/Net/Amazon/S3/Operation/Bucket/Objects/List.pm blib\lib\Shared\Examples\Net\Amazon\S3\Operation\Bucket\Objects\List.pm
cp lib/Shared/Examples/Net/Amazon/S3/Request.pm blib\lib\Shared\Examples\Net\Amazon\S3\Request.pm
cp lib/Shared/Examples/Net/Amazon/S3/Operation/Bucket/Objects/Delete.pm blib\lib\Shared\Examples\Net\Amazon\S3\Operation\Bucket\Objects\Delete.pm
cp lib/Shared/Examples/Net/Amazon/S3/Operation/Service/Buckets/List.pm blib\lib\Shared\Examples\Net\Amazon\S3\Operation\Service\Buckets\List.pm
"C:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command -e cp -- bin/s3cl blib\script\s3cl
pl2bat.bat blib\script\s3cl
"C:\Strawberry\perl\bin\perl.exe" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib\lib', 'blib\arch')" t/*.t
# No tests run!
# Failed test 'No tests run for subtest "use_ok"'
# at t/00use.t line 16.
Can't locate Win32.pm in #INC (you may need to install the Win32 module) (#INC contains: lib) at C:/Strawberry/perl/lib/Cwd.pm line 605.
BEGIN failed--compilation aborted.
# Looks like your test exited with 255 just after 2.
t/00use.t ...................................
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 1/2 subtests
t/01api.t ................................... skipped: Testing this module for real costs money. Enable it by setting true value to env variable AMAZON_S3_EXPENSIVE_TESTS
t/02client.t ................................ skipped: Testing this module for real costs money.
t/03token.t ................................. skipped: Need these vars in ENV: AWS_ACCESS_KEY_ID, AWS_ACCESS_KEY_SECRET, AWS_ACCESS_TOKEN
t/api-bucket-acl-get.t ...................... ok
t/api-bucket-acl-set.t ...................... ok
t/api-bucket-create.t ....................... ok
t/api-bucket-delete.t ....................... ok
t/api-bucket-objects-delete.t ............... ok
t/api-bucket-objects-list.t ................. ok
t/api-object-acl-get.t ...................... ok
t/api-object-acl-set.t ...................... ok
t/api-object-create.t ....................... ok
t/api-object-delete.t ....................... ok
t/api-object-fetch.t ........................ ok
t/api-object-head.t ......................... ok
t/api-service-buckets-list.t ................ ok
t/client-bucket-acl-get.t ................... ok
t/client-bucket-create.t .................... ok
t/client-bucket-delete.t .................... ok
t/client-bucket-objects-delete.t ............ ok
t/client-bucket-objects-list.t .............. ok
t/client-object-create.t .................... ok
t/client-object-delete.t .................... ok
t/client-object-fetch.t ..................... ok
t/client-service-buckets-list.t ............. ok
t/query-string-authentication-uri.t ......... ok
t/request-abort-multipart-upload.t .......... ok
t/request-complete-multipart-upload.t ....... ok
t/request-create-bucket.t ................... ok
t/request-delete-bucket.t ................... ok
t/request-delete-multi-object.t ............. ok
t/request-delete-object.t ................... ok
t/request-get-bucket-access-control.t ....... ok
t/request-get-bucket-location-constraint.t .. ok
t/request-get-object-access-control.t ....... ok
t/request-get-object.t ...................... ok
t/request-initiate-multipart-upload.t ....... ok
t/request-list-all-buckets.t ................ ok
t/request-list-bucket.t ..................... ok
t/request-list-parts.t ...................... ok
t/request-put-object.t ...................... ok
t/request-put-part.t ........................ ok
t/request-set-bucket-access-control.t ....... ok
t/request-set-object-access-control.t ....... ok
t/request.t ................................. ok
t/signature-v4-with-security-token.t ........ ok
Test Summary Report
-------------------
t/00use.t (Wstat: 65280 Tests: 2 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Files=47, Tests=199, 60 wallclock secs ( 0.16 usr + 0.23 sys = 0.39 CPU)
Result: FAIL
Failed 1/47 test programs. 1/199 subtests failed.
gmake: *** [Makefile:1052: test_dynamic] Error 255
-> FAIL Installing Net::Amazon::S3 failed. See C:\Users\MyUsername\.cpanm\work\1595972364.5912\build.log for details. Retry with --force to force install it.
The log says "Can't locate Win32.pm in #INC (you may need to install the Win32 module)" so I installed it with CPAN
λ cpanm Win32
Win32 is up to date. (0.54)
but I am still unable to successfully install Net::Amazon::S3
This a bug in a module used to perform the test. The bug results in the test failing on Windows, but isn't indicative of a problem with any of the modules being installed. It's a problem with the test, not the modules being tested.
Adding the following to t\00use.t will allow the test to run:
use Win32;
But that's not really necessary. If this is the only failing test, it should be safe to ignore this test failure and force the installation of the module (by passing -f to cpan/cpanm).
Net-Amazon-S3 has been notified of the issue and how to work around it.

ExtUtils::MakeMaker compile helper utility

Can I persuade EU::MM to compile a helper utility without looking for XS to build?
For example, given the following:
Makefile.PL
helper.c
example.pl
lib/App/Example.pm
... a make on the generated Makefile tries to work with a dynamic library:
$:- cat Makefile.PL
use ExtUtils::MakeMaker;
WriteMakefile(
NAME => 'App::Example',
VERSION_FROM => 'lib/App/Example.pm', # finds $VERSION
);
$:- perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for App::Example
$:- make
cp lib/App/Example.pm blib/lib/App/Example.pm
AutoSplitting blib/lib/App/Example.pm (blib/lib/auto/App/Example)
Running Mkbootstrap for App::Example ()
chmod 644 Example.bs
rm -f blib/arch/auto/App/Example/Example.so
gcc -shared .... Example.o -o blib/arch/auto/App/Example/Example.so \
\
gcc: Example.o: No such file or directory
gcc: no input files
make: *** [blib/arch/auto/App/Example/Example.so] Error 1
What I'd ultimately like is to have helper built and installed under /usr/bin, example.pl under /usr/sbin, and App::Example under $Config{vendorlib}. However, I need the pure perl modules "built" correctly first. Playing with C and EXE_FILES directives didn't change this behavior.

Perl. Install PAR::Packer under Windows (w/ Strawberry Perl)

I am trying to install PAR::Packer on a Windows system. I tried "cpanm -n PAR::Packer --force" but got the following dump. I don't even understand what it is trying to do in my GnuPgp directory, but apparently there is a problem with blank spaces in its path?
Thanks!
Configuring PAR-Packer-1.019
Running Makefile.PL
Checking if your kit is complete...
Looks good
Prototype mismatch: sub main::prompt: none vs ($;$) at C:/Dwimperl/perl/lib/ExtUtils/MakeMaker.pm line 219
Writing Makefile for par.exe
Writing MYMETA.yml and MYMETA.json
Writing Makefile for PAR::Packer
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have Compress::Zlib 1.16 ... Yes (2.042)
Checking if you have Archive::Zip 1 ... Yes (1.30)
Checking if you have ExtUtils::MakeMaker 6.59 ... Yes (6.62)
Checking if you have Getopt::ArgvFile 1.07 ... Yes (1.11)
Checking if you have IO::Compress::Gzip 0 ... Yes (2.042)
Checking if you have PAR 1.005 ... Yes (1.007)
Checking if you have PAR::Dist 0.22 ... Yes (0.48)
Checking if you have ExtUtils::Embed 0 ... Yes (1.30)
Checking if you have File::Temp 0.05 ... Yes (0.22)
Checking if you have Win32::Process 0 ... Yes (0.14)
Checking if you have Parse::Binary 0.04 ... Yes (0.11)
Checking if you have Module::ScanDeps 1.09 ... Yes (1.13)
Checking if you have Win32::Exe 0.17 ... Yes (0.17)
Building PAR-Packer-1.019
cp lib/App/Packer/PAR.pm blib\lib\App\Packer\PAR.pm
cp lib/PAR/Packer.pm blib\lib\PAR\Packer.pm
cp lib/PAR/Filter/Obfuscate.pm blib\lib\PAR\Filter\Obfuscate.pm
cp lib/PAR/Filter/PodStrip.pm blib\lib\PAR\Filter\PodStrip.pm
cp lib/PAR/StrippedPARL/Base.pm blib\lib\PAR\StrippedPARL\Base.pm
cp lib/PAR/Filter.pm blib\lib\PAR\Filter.pm
cp lib/PAR/Filter/PatchContent.pm blib\lib\PAR\Filter\PatchContent.pm
cp lib/PAR/Filter/Bytecode.pm blib\lib\PAR\Filter\Bytecode.pm
cp lib/pp.pm blib\lib\pp.pm
cp lib/PAR/Filter/Bleach.pm blib\lib\PAR\Filter\Bleach.pm
C:\Dwimperl\perl\bin\perl.exe par_pl2c.pl my_par_pl < ..\script\par.pl > my_par_pl.c
C:\Dwimperl\perl\bin\perl.exe sha1.c.PL
gcc -c -s -O2 -DWIN32 -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -I"C:\Dwimperl\perl\lib\CORE" -DPARL_EXE=\"parl.exe\" -s -O2 main.c
main.c: In function 'main':
main.c:121: warning: assignment discards qualifiers from pointer target type
windres -i winres/pp.rc -o ppresource.coff --input-format=rc --output-format=coff --target=pe-i386
g++ main.o ppresource.coff -s -s -L"C:\Dwimperl\perl\lib\CORE" -L"C:\Dwimperl\c\lib" C:\Dwimperl\perl\lib\CORE\libperl514.a C:\Dwimperl\c\i686-w64-mingw32\lib\libmoldname.a C:\Dwimperl\c\i686-w64-mingw32\lib\libkernel32.a C:\Dwimperl\c\i686-w64-mingw32\lib\libuser32.a C:\Dwimperl\c\i686-w64-mingw32\lib\libgdi32.a C:\Dwimperl\c\i686-w64-mingw32\lib\libwinspool.a C:\Dwimperl\c\i686-w64-mingw32\lib\libcomdlg32.a C:\Dwimperl\c\i686-w64-mingw32\lib\libadvapi32.a C:\Dwimperl\c\i686-w64-mingw32\lib\libshell32.a C:\Dwimperl\c\i686-w64-mingw32\lib\libole32.a C:\Dwimperl\c\i686-w64-mingw32\lib\liboleaut32.a C:\Dwimperl\c\i686-w64-mingw32\lib\libnetapi32.a C:\Dwimperl\c\i686-w64-mingw32\lib\libuuid.a C:\Dwimperl\c\i686-w64-mingw32\lib\libws2_32.a C:\Dwimperl\c\i686-w64-mingw32\lib\libmpr.a C:\Dwimperl\c\i686-w64-mingw32\lib\libwinmm.a C:\Dwimperl\c\i686-w64-mingw32\lib\libversion.a C:\Dwimperl\c\i686-w64-mingw32\lib\libodbc32.a C:\Dwimperl\c\i686-w64-mingw32\lib\libodbccp32.a C:\Dwimperl\c\i686-w64-mingw32\lib\libcomctl32.a -o par.exe
rem
C:\Dwimperl\perl\bin\perl.exe encode_append.pl Dynamic.in par.exe Dynamic.pm
C:\Dwimperl\perl\bin\perl.exe file2c.pl -c 30000 par.exe C:\Dwimperl\perl\bin\perl514.dll C:\Dwimperl\perl\bin\libgcc_s_sjlj-1.dll C:\Program Files (x86)\GNU\GnuPG\pub\libstdc++-6.dll > boot_embedded_files.c
open input file 'C:\Program': No such file or directory at file2c.pl line 43.
dmake: Error code 130, while making 'boot_embedded_files.c'
dmake: 'boot_embedded_files.c' removed.
dmake.exe: Error code 255, while making 'subdirs'
-> FAIL Installing PAR::Packer failed. See C:\Users\user\.cpanm\work\1406015074.8672\build.log for details. Retry with --force to force install it.
From your output, you can see the commands which the Makefile is executing. This one:
C:\Dwimperl\perl\bin\perl.exe file2c.pl -c 30000 par.exe C:\Dwimperl\perl\bin\perl514.dll C:\Dwimperl\perl\bin\libgcc_s_sjlj-1.dll C:\Program Files (x86)\GNU\GnuPG\pub\libstdc++-6.dll > boot_embedded_files.c
appears to attempt to pass this filename:
C:\Program Files (x86)\GNU\GnuPG\pub\libstdc++-6.dll
as a command-line argument, but does not quote it. The called program therefore attempts to open file C:\Program and fails. The fault probably lies somewhere within the build process, where a value should have been quoted, but wasn't. You might be able to work round it by executing the command correctly quoted:
C:\Dwimperl\perl\bin\perl.exe file2c.pl -c 30000 par.exe C:\Dwimperl\perl\bin\perl514.dll C:\Dwimperl\perl\bin\libgcc_s_sjlj-1.dll "C:\Program Files (x86)\GNU\GnuPG\pub\libstdc++-6.dll" > boot_embedded_files.c
and then rerunning make to allow it to build the rest. But this approach is not guaranteed to work.
However, the package seems to be being maintained, with the changelog for the most recent version here:
http://cpansearch.perl.org/src/RSCHUPP/PAR-Packer-1.020/ChangeLog
and evidence from the bug tracker that some issues are being resolved:
https://rt.cpan.org/Public/Dist/Display.html?Status=Resolved;Name=PAR-Packer
I suggest you report this bug there, and see whether the maintainers are able to provide a fix.