gpt4 book ai didi

perl - (Windows 10)尝试安装 PPM 和 CPAN 都失败的 Perl 模块?

转载 作者:行者123 更新时间:2023-12-04 03:46:52 24 4
gpt4 key购买 nike

当前在 Windows 10 上运行 strawberry perl(最新版​​本全新安装)

这是我尝试运行 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.

这是我尝试运行 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'.

我的 perl -v 以防对任何人有用

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

有人有这方面的经验吗?我尝试查找有关我遇到的错误的一些相关问题,但没有找到任何真正有用的信息。

谢谢!

最佳答案

@Clamp 通过完全删除 Strawberry 目录并进行全新安装提供了正确的解决方案。好像有两个不同的版本冲突。

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?

关于perl - (Windows 10)尝试安装 PPM 和 CPAN 都失败的 Perl 模块?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65012690/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com