我在Linux机器中创建了一个带有minicpan的本地存储库,然后将其移动到无法访问在线CPAN的Windows中。但是当我尝试使用它时,我得到了这个错误消息:
cpan> install PowerBuilder::ORCA
Reading 'C:\Perl\minicpan\authors\01mailrc.txt.gz'
Use of uninitialized value $command in concatenation (.) or string at C:\Perl\site\lib/CPAN/Tarzip.pm line 161.
"-qdt" no se reconoce como un comando interno o externo, programa o archivo por lotes ejecutable.
............................................................................DONE
Reading 'C:\Perl\minicpan\modules\02packages.details.txt.gz'
Use of uninitialized value $command in concatenation (.) or string at C:\Perl\site\lib/CPAN/Tarzip.pm line 161.
"-qdt" no se reconoce como un comando interno o externo, programa o archivo por lotes ejecutable.
Warning: Your C:\Perl\minicpan\modules\02packages.details.txt.gz does not contain a Line-Count header.
Please check the validity of the index file by comparing it to more than one CPAN mirror. I'll continue but problems seem likely to
happen.
Caught SIGINT, trying to continue
Warning: Your C:\Perl\minicpan\modules\02packages.details.txt.gz does not contain a Last-Updated header.
Please check the validity of the index file by comparing it to more than one CPAN mirror. I'll continue but problems seem likely to
happen.
Got another SIGINT
Reading 'C:\Perl\minicpan\authors\01mailrc.txt.gz'
Use of uninitialized value $command in concatenation (.) or string at C:\Perl\site\lib/CPAN/Tarzip.pm line 161.
"-qdt" no se reconoce como un comando interno o externo, programa o archivo por lotes ejecutable.我怀疑这可能是因为不同的回车,但如果有人有另一个想法为什么可能会这样,那就太好了。另外,如果是因为回车符的原因,你知道如何修复这个问题,而不需要在Windows机器上再次下载整个存储库吗?
发布于 2012-05-14 20:20:35
删除CPAN配置,然后再次运行其首次配置。
它仍然引用Linux到tar的路径,并使用ANSI终端转义来表示颜色。
https://stackoverflow.com/questions/10581304
复制相似问题