使用CPAN安装Perl模块时找不到dmake

时间:2019-09-25 18:07:37

标签: perl cpan dmake

我从ActiveState安装了Perl。普通版,无扩展名。 Windows 10。     “这是为MSWin32-x64-multi-thread构建的perl 5,版本28,版本1(v5.28.1)”

我需要使用的预先存在的perl脚本访问PostScript :: Simple,因此需要将其添加到我的安装中。

据说,正确的方法是打开cpan并运行命令“ install PostScript :: Simple”。

但是,它最终会因dmake错误而失败。我试过cpan install dmake,似乎正在尝试这样做,但这也失败了。

Loading internal logger. Log::Log4perl recommended for better logging
Reading 'H:\.cpan\Metadata'
  Database was generated on Wed, 25 Sep 2019 15:55:37 GMT
Running install for module 'PostScript::Simple'
CPAN: Digest::SHA loaded ok (v6.01)
CPAN: Compress::Zlib loaded ok (v2.074)
Checksum for H:\.cpan\sources\authors\id\M\MC\MCNEWTON\PostScript-Simple-0.09.tar.gz ok
CPAN: Archive::Tar loaded ok (v2.30)
'YAML' not installed, will not store persistent state
CPAN: CPAN::Meta::Requirements loaded ok (v2.140)
CPAN: Parse::CPAN::Meta loaded ok (v2.150010)
CPAN: CPAN::Meta loaded ok (v2.150010)
CPAN: Module::CoreList loaded ok (v5.20181129_28)
Configuring M/MC/MCNEWTON/PostScript-Simple-0.09.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a dmake-style Makefile
Writing Makefile for PostScript::Simple
Writing MYMETA.yml and MYMETA.json
  MCNEWTON/PostScript-Simple-0.09.tar.gz
  C:\Perl64\bin\perl.exe Makefile.PL -- OK
Running make for M/MC/MCNEWTON/PostScript-Simple-0.09.tar.gz
**'dmake' is not recognized as an internal or external command,**
operable program or batch file.
  MCNEWTON/PostScript-Simple-0.09.tar.gz
  dmake -- NOT OK

1 个答案:

答案 0 :(得分:0)

运行cpan,然后执行以下操作:

o conf make

这是我的Windows系统之一的示例:

cpan> o conf make
    make               [C:\STRAWB~1\c\bin\gmake.exe]

检查cpan认为make选项中列出的文件是否在您的系统上可用(该条目可能只是缺少二进制文件的路径信息)。

如果没有找到,或者找到它,或者寻找另一个make程序(gmake.exe很常见),然后使用cpan下的配置命令输入路径和make程序的文件名:

cpan> o conf make C:\\Strawberry\\c\\bin\\gmake.exe
    make               [C:\Strawb~1\c\bin\gmake.exe]
    commit: wrote 'C:\Strawberry\perl\lib/CPAN/Config.pm'