简体   繁体   English

ActiveState Perl CPAN dmake 不工作

[英]ActiveState Perl CPAN dmake not working

I have ActiveState Perl 5.20 32bit on windows 7 64bit.我在 Windows 7 64 位上有 ActiveState Perl 5.20 32 位。 I want to install mudules from CPAN but always ends this:我想从 CPAN 安装 mudules 但总是这样结束:

Checksum for C:\Perl\cpan\sources\authors\id\S\SH\SHAY\dmake-4.12.2.2.zip ok
Package contains both files[ChangeLog COPYING dmake.exe META.yml NEWS PATCH.TXT
README.TXT] and directories[man readme startup]; not recognized as a perl packag
e, giving up
Configuring S/SH/SHAY/dmake-4.12.2.2.zip with Makefile.PL
Running make for S/SH/SHAY/dmake-4.12.2.2.zip
dmake.exe:  Error: -- No target
  SHAY/dmake-4.12.2.2.zip
  C:\Perl\site\bin\dmake.exe -- NOT OK

Actually, I used the latest ActivePerl 5.28 under Win7, and got the same error: Running make for C/CO/CONKLIN/MIDI-Perl-0.83.tar.gz 'dmake' is not recognized as an internal or external command, operable program or batch file. CONKLIN/MIDI-Perl-0.83.tar.gz dmake -- NOT OK实际上,我在Win7下使用最新的ActivePerl 5.28,同样报错: Running make for C/CO/CONKLIN/MIDI-Perl-0.83.tar.gz 'dmake' is not recognized as an internal or external command, operable program or batch file. CONKLIN/MIDI-Perl-0.83.tar.gz dmake -- NOT OK Running make for C/CO/CONKLIN/MIDI-Perl-0.83.tar.gz 'dmake' is not recognized as an internal or external command, operable program or batch file. CONKLIN/MIDI-Perl-0.83.tar.gz dmake -- NOT OK . Running make for C/CO/CONKLIN/MIDI-Perl-0.83.tar.gz 'dmake' is not recognized as an internal or external command, operable program or batch file. CONKLIN/MIDI-Perl-0.83.tar.gz dmake -- NOT OK

I had a look into C:\Perl64\cpan\build folder and I have found there both modules I tried to install with CPAN:我查看了C:\Perl64\cpan\build文件夹,发现了我尝试使用 CPAN 安装的两个模块:

MIDI-Perl-0.83-0
MIDI-Perl-0.83-0.yml
XML-Simple-2.25-0
XML-Simple-2.25-0.yml

Inside those folders I've found a lib folder.在这些文件夹中,我找到了一个lib文件夹。 So, I just copied the content of C:\Perl64\cpan\build\MIDI-Perl-0.83-0\lib into C:\Perl64\lib and so on, and both modules were recognized during execution of my scripts and worked well.所以,我只是将C:\Perl64\cpan\build\MIDI-Perl-0.83-0\lib的内容复制到C:\Perl64\lib等等,这两个模块在我的脚本执行过程中都被识别并且运行良好.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM