嗨,我的windows机器正在尝试从cpan安装perl模块,在命中两次之后,会出现错误。
Checking if your kit is complete...
Warning: the following files are missing in your kit:
README
Please inform the author.
Writing Makefile for Digest::Perl::MD5
'nmake' is not recognized as an internal or external command,
operable program or batch file.
nmake -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible
Running make for D/DO/DOUGW/Spreadsheet-ParseExcel-0.65.tar.gz
Is already unwrapped into directory C:\Perl\cpan\build\Spreadsheet-ParseExcel
0.65
CPAN.pm: Going to build D/DO/DOUGW/Spreadsheet-ParseExcel-0.65.tar.gz
'nmake' is not recognized as an internal or external command,
operable program or batch file.
nmake -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible
>perl exceltoxml.pl
Can't locate Spreadsheet/ParseExcel.pm in @INC (@INC contains: C:/Perl/site/lib
C:/Perl/lib .) at exceltoxml.pl line 4.
BEGIN failed--compilation aborted at exceltoxml.pl line 4.我试过5次了。
发布于 2015-05-19 15:31:47
nmake‘不被识别为内部或外部命令。
锡南纽尔是对的。错误消息是您没有安装nmake。这意味着您正在尝试编译代码(可能是C代码),并且没有C编译器或生成程序。
不久前,我会告诉人们,ActiveState并不完全支持cpan,因为它不能编译代码。ActiveState使用它自己的预编译包,这些包可以通过(PPM)获得,可以从命令行或GUI界面使用。如果一个包无法通过PPM获得,并且需要编译,那么您只是运气不佳。出于这个原因,我通常推荐草莓Perl而不是ActivePerl。草莓Perl附带了那些可编译的CPAN模块所需的完整MinGW环境。
然而,大约半年前,ActiveState组装了一个可安装的用于MinGW环境的PPM软件包。一旦安装完毕,ActivePerl就可以使用CPAN了。
所以你有两个解决方案:
Spreadsheet::ParseExcel。Spreadsheet::ParseExcel包。C:\>提示时使用的。Cygwin附带了最新版本的Perl,并适用于我尝试过的每个CPAN包。有一些小问题(比如Termcaps),它们的工作方式不太正常,但我对此总体上很满意。它甚至与X11一起提供,允许您运行XWindow应用程序,甚至可以跨系统使用XWindow应用程序--就像真正的操作系统一样!在一些情况下,CPAN模块在Windows上可能仍然存在问题。其中之一是与归档和解压缩模块以及缺少的利布兹库有关。但是,安装这个MinGW包(或者使用草莓Perl或Cygwin)将解决大约95%的cpan安装问题。
https://stackoverflow.com/questions/30324037
复制相似问题