问题描述
我从ActiveState安装了Perl。普通版,无扩展名。 Windows10。
这是为MSWin32-x64-multi-thread构建的perl 5,版本28,版本1(v5.28.1)
I installed Perl from ActiveState. Plain version with no extensions. Windows 10. "This is perl 5, version 28, subversion 1 (v5.28.1) built for MSWin32-x64-multi-thread"
A pre我需要使用的现有perl脚本访问PostScript :: Simple,因此需要将其添加到我的安装中。
A pre-existing perl script that I need to use accesses PostScript::Simple so I need to add that to my install.
应该,打开它的正确方法是cpan并运行命令 install PostScript :: Simple。
Supposedly, the right way to do this is to open cpan and run the command "install PostScript::Simple".
但是,它最终会因dmake错误而失败。我试过cpan install dmake,似乎正在尝试这样做,但这也失败了。
However, it eventually fails with a dmake error. I've tried cpan install dmake and appears to be trying to do so, but that also fails.
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
推荐答案
运行 cpan
,然后执行以下操作:
Runcpan
, and execute the following:
o conf make
这是我的Windows系统之一的示例:
Here's an example from one of my Windows systems:
cpan> o conf make
make [C:\STRAWB~1\c\bin\gmake.exe]
检查在 cpan
认为合适的系统上,make选项中列出的文件是否可用(该条目可能只是缺少路径)
Check to see if the file listed in the make option is available on your system where cpan
thinks it is (the entry may just be missing the path information to the binary).
如果找不到,要么找到它,要么寻找另一个make程序( gmake.exe
很常见),然后使用 cpan
下的配置命令输入路径和make程序的文件名:
If it's not, either find it, or look for another make program (gmake.exe
is common), then enter the path and the make program's filename with the configuration command under cpan
:
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'
这篇关于使用CPAN安装Perl模块时找不到dmake的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!