WIN10 上的 Perl 安装模块失败

WIN10 上的 Perl 安装模块失败

我正在尝试安装电子表格::WriteExcel通过 CPAN 工具为 Aactive Perl(5.28.1 版本)构建模块。

但是,当我执行命令“cpan install Spreadsheet::WriteExcel”时,它显示一些错误并自动终止安装。

日志显示如下。

在此处输入图片描述

CPAN: Module::Build loaded ok (v0.4224)
Configuring J/JT/JTBRAUN/Parse-RecDescent-1.967015.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a dmake-style Makefile
Writing Makefile for Parse::RecDescent
Writing MYMETA.yml and MYMETA.json
  JTBRAUN/Parse-RecDescent-1.967015.tar.gz
  C:\Perl64\bin\perl.exe Makefile.PL INSTALLDIRS=site -- OK
Running make for J/JT/JTBRAUN/Parse-RecDescent-1.967015.tar.gz
'dmake' is not recognized as an internal or external command,
operable program or batch file.
  JTBRAUN/Parse-RecDescent-1.967015.tar.gz
  dmake -- NOT OK
  JMCNAMARA/Spreadsheet-WriteExcel-2.40.tar.gz
  Has already been unwrapped into directory C:\Perl64\cpan\build\Spreadsheet-WriteExcel-2.40-1
  JMCNAMARA/Spreadsheet-WriteExcel-2.40.tar.gz
  Has already been prepared
Running make for J/JM/JMCNAMARA/Spreadsheet-WriteExcel-2.40.tar.gz
Warning: Prerequisite 'OLE::Storage_Lite => 0.19' for 'JMCNAMARA/Spreadsheet-WriteExcel-2.40.tar.gz' failed when processing 'JMCNAMARA/OLE-Storage_Lite-0.19.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
Warning: Prerequisite 'Parse::RecDescent => 0' for 'JMCNAMARA/Spreadsheet-WriteExcel-2.40.tar.gz' failed when processing 'JTBRAUN/Parse-RecDescent-1.967015.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
'dmake' is not recognized as an internal or external command,
operable program or batch file.
  JMCNAMARA/Spreadsheet-WriteExcel-2.40.tar.gz
  dmake -- NOT OK

根据日志,我还尝试安装 dmake 模块,但仍然不起作用

有人知道如何解决这个问题,以便我可以正确安装模块吗?

相关内容