Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
525 views
in Technique[技术] by (71.8m points)

dmake not found when installing Perl module using CPAN

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-existing perl script that I need to use accesses PostScript::Simple so I need to add that to my install.

Supposedly, the right way to do this is to open cpan and run the command "install PostScript::Simple".

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:.cpanMetadata'
  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:.cpansourcesauthorsidMMCMCNEWTONPostScript-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:Perl64inperl.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
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Runcpan, and execute the following:

o conf make

Here's an example from one of my Windows systems:

cpan> o conf make
    make               [C:STRAWB~1cingmake.exe]

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).

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~1cingmake.exe]
    commit: wrote 'C:Strawberryperllib/CPAN/Config.pm'

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...