(Windows 10) Trying to Install Perl Modules both PPM and CPAN fail?

1.1k Views Asked by At

Currently running strawberry perl (latest release fresh install) on windows 10

This is what I get when I try running PPM

PS C:\> ppm
Attempt to reload Compress/Raw/Zlib.pm aborted.
Compilation failed in require at C:/Strawberry/perl/vendor/lib/Archive/Zip.pm line 9.
BEGIN failed--compilation aborted at C:/Strawberry/perl/vendor/lib/Archive/Zip.pm line 9.
Compilation failed in require at C:/Strawberry/perl/vendor/lib/PPM.pm line 30.
BEGIN failed--compilation aborted at C:/Strawberry/perl/vendor/lib/PPM.pm line 30.
Compilation failed in require at C:\Strawberry\perl\bin\ppm.bat line 22.
BEGIN failed--compilation aborted at C:\Strawberry\perl\bin\ppm.bat line 22.

This is what I get when I try running cpan

PS C:\> cpan install PadWalker
CPAN: CPAN::SQLite loaded ok (v0.219)
Database was generated on Wed, 25 Nov 2020 19:37:48 GMT
Running install for module 'PadWalker'

  CPAN: checksum security checks disabled because Digest::SHA not installed.
  Please consider installing the Digest::SHA module.

'" "' is not recognized as an internal or external command,
operable program or batch file.
CPAN: Archive::Tar loaded ok (v1.60)


CPAN.pm needs either the external programs tar and gzip -or- both
modules Archive::Tar and Compress::Zlib installed.

For tar I found nothing, for gzip nothing.

For Archive::Tar I found '', for Compress::Zlib nothing;

Can't continue cutting file 'C:\STRAWB~1\cpan\sources\authors\id\R\RO\ROBIN\PadWalker-2.5.tar.gz'.
CPAN: YAML::XS loaded ok (v0.82)
  ROBIN/PadWalker-2.5.tar.gz
  Had problems unarchiving. Please build manually
Stopping: 'install' failed for 'PadWalker'.

my perl -v in case thats useful to anyone

PS C:\> perl -v
This is perl 5, version 32, subversion 0 (v5.32.0) built for MSWin32-x64-multi-thread

Anyone have any experience with this at all? I tried looking up some related issues on the errors I was getting but didn't find anything really useful.

Thanks!

1

There are 1 best solutions below

0
Gennaro On

@Clamp provided the correct solution by just completely deleting the Strawberry directory and doing a fresh install. Seemed as though there were two different versions conflicting.

I'd suggest deleting C:\Strawberry and install to a clean directory. – clamp Nov 25 '20 at 23:01

(Windows 10) Trying to Install Perl Modules both PPM and CPAN fail?