cpan 失败,显示“制作‘pm_to_blib’时出现错误代码 130”

cpan 失败,显示“制作‘pm_to_blib’时出现错误代码 130”

我最近在我的 Windows 7 机器上安装了 Perl。

运行时cpan App::cpanminus,出现以下错误:

D:\Perl>cpan App::cpanminus
CPAN: CPAN::SQLite loaded ok (v0.199)
Database was generated on Mon, 04 Feb 2013 07:21:27 GMT
Running install for module 'App::cpanminus'
Running make for M/MI/MIYAGAWA/App-cpanminus-1.5021.tar.gz
CPAN: Digest::SHA loaded ok (v5.61)
CPAN: Compress::Zlib loaded ok (v2.034)
Checksum for D:\Strawberry\cpan\sources\authors\id\M\MI\MIYAGAWA\App-cpanminus-1
.5021.tar.gz ok
CPAN: Archive::Tar loaded ok (v1.76)
CPAN: File::Temp loaded ok (v0.22)
CPAN: Parse::CPAN::Meta loaded ok (v1.4401)
CPAN: CPAN::Meta loaded ok (v2.110930)
CPAN: YAML loaded ok (v0.73)

  CPAN.pm: Going to build M/MI/MIYAGAWA/App-cpanminus-1.5021.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for App::cpanminus
Could not read metadata file. Falling back to other methods to determine prerequ
isites
CPAN: Module::CoreList loaded ok (v2.49)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Cannot copy 'lib/App/cpanminus.pm' to 'blib\lib\App\cpanminus.pm': No suc
h file or directory
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 at -e line 1
dmake.EXE:  Error code 130, while making 'pm_to_blib'
  MIYAGAWA/App-cpanminus-1.5021.tar.gz
  D:\Strawberry\c\bin\dmake.EXE -- NOT OK
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible

我怎样才能解决这个问题?

答案1

发生这种情况的原因是我使用 regedit HKEY->Software->Microsoft->Command processor->autorun 在我的 cmd 中设置了自动运行以更改为我的工作目录。

这使得 dmake 程序看起来在错误的位置。删除 autorun 后,一切都运行正常。

相关内容