As stated before, Strawberry Perl 5.26 on Windows 10, running in a DOS Command Window. I am running as a normal user (sole user of this machine, so I don't know if I'm automatically granted any special powers). Here is the complete upgrade attempt:
C:\Users\Phil>cpan
Loading internal logger. Log::Log4perl recommended for better logging
Unable to get Terminal Size. The Win32 GetConsoleScreenBufferInfo call didn't work. The COLUMNS and LINES environment variables didn't work. at C:\Strawberry\perl\vendor\lib/Term/ReadLine/readline.pm line 410.
cpan shell -- CPAN exploration and modules installation (v2.27)
Enter 'h' for help.
Show quoted textcpan> upgrade File::Slurp
Database was generated on Thu, 12 Sep 2019 14:57:40 GMT
Package namespace installed latest in CPAN file
File::Slurp 9999.19 9999.27 CAPOEIRAB/File-Slurp-9999.27.tar.gz
Running install for module 'File::Slurp'
Checksum for C:\STRAWB~1\cpan\sources\authors\id\C\CA\CAPOEIRAB\File-Slurp-9999.27.tar.gz ok
Scanning cache C:\STRAWB~1\cpan\build for sizes
...........................................---------------------------------DONE
< a bunch of old install stuff DEL from cpan\build\ >
Configuring C/CA/CAPOEIRAB/File-Slurp-9999.27.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a gmake-style Makefile
Writing Makefile for File::Slurp
Writing MYMETA.yml and MYMETA.json
CAPOEIRAB/File-Slurp-9999.27.tar.gz
C:\Strawberry\perl\bin\perl.exe Makefile.PL -- OK
Running make for C/CA/CAPOEIRAB/File-Slurp-9999.27.tar.gz
cp lib/File/Slurp.pm blib\lib\File\Slurp.pm
CAPOEIRAB/File-Slurp-9999.27.tar.gz
C:\STRAWB~1\c\bin\gmake.exe -- OK
Running make test for CAPOEIRAB/File-Slurp-9999.27.tar.gz
"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
t/00-report-prereqs.t ......... #
# Versions for all modules listed in MYMETA.json (including optional ones):
#
# === Configure Requires ===
#
# Module Want Have
# ------------------- ---- ----
# ExtUtils::MakeMaker any 7.38
#
# === Build Requires ===
#
# Module Want Have
# ------------------- ---- ----
# ExtUtils::MakeMaker any 7.38
#
# === Test Requires ===
#
# Module Want Have
# -------------- ---- --------
# Carp any 1.50
# Exporter 5.57 5.73
# Fcntl any 1.13
# File::Basename any 2.85
# File::Spec 3.01 3.75
# File::Temp any 0.2309
# IO::Handle any 1.39
# POSIX any 1.76
# Scalar::Util 1.00 1.52
# Socket any 2.029
# Symbol any 1.08
# Test::More any 1.302168
# overload any 1.28
# strict any 1.11
# warnings any 1.37
#
# === Runtime Requires ===
#
# Module Want Have
# -------------- ---- ------
# B any 1.68
# Carp any 1.50
# Errno any 1.28
# Exporter 5.57 5.73
# Fcntl any 1.13
# File::Basename any 2.85
# File::Spec 3.01 3.75
# File::Temp any 0.2309
# IO::Handle any 1.39
# POSIX any 1.76
# strict any 1.11
# warnings any 1.37
#
t/00-report-prereqs.t ......... ok
t/01-error_edit_file.t ........ ok
t/01-error_edit_file_lines.t .. ok
t/01-error_prepend_file.t ..... ok
t/01-error_read_dir.t ......... ok
t/01-error_read_file.t ........ ok
t/01-error_write_file.t ....... ok
t/append_null.t ............... ok
t/binmode.t ................... ok
t/data_glob.t ................. ok
t/data_section.t .............. ok
t/edit_file.t ................. ok
t/error.t ..................... ok
t/file_object.t ............... ok
t/handle.t .................... ok
t/inode.t ..................... skipped: skip inode test on windows
t/large.t ..................... ok
t/newline.t ................... ok
t/no_clobber.t ................ ok
t/original.t .................. ok
t/paragraph.t ................. ok
t/perms.t ..................... ok
t/prepend_file.t .............. ok
t/pseudo.t .................... ok
t/read_dir.t .................. ok
t/slurp.t ..................... ok
t/stdin.t ..................... ok
t/stringify.t ................. ok
t/tainted.t ................... can't write to '\tempvu7vm': Permission denied at t/tainted.t line 26.
# Looks like your test exited with 13 before it could output anything.
t/tainted.t ................... Dubious, test returned 13 (wstat 3328, 0xd00)
Failed 9/9 subtests
t/write_file_win32.t .......... ok
Test Summary Report
-------------------
t/tainted.t (Wstat: 3328 Tests: 0 Failed: 0)
Non-zero exit status: 13
Parse errors: Bad plan. You planned 9 tests but ran 0.
Files=30, Tests=627, 9 wallclock secs ( 0.16 usr + 0.08 sys = 0.23 CPU)
Result: FAIL
Failed 1/30 test programs. 0/627 subtests failed.
gmake: *** [Makefile:929: test_dynamic] Error 255
Lockfile removed.
CAPOEIRAB/File-Slurp-9999.27.tar.gz
C:\STRAWB~1\c\bin\gmake.exe test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports CAPOEIRAB/File-Slurp-9999.27.tar.gz
Stopping: 'install' failed for 'File::Slurp'.
Failed during this command:
CAPOEIRAB/File-Slurp-9999.27.tar.gz : make_test NO
Show quoted textcpan>
I suspect that the problem is trying to create an absolute directory path, rather than something relative to the pwd. You might look at other packages and see what they do if they need to create a directory somewhere.