将cpan命令行用于JSON时出错

时间:2019-06-27 06:52:50

标签: perl cpan activeperl

尝试通过cpan安装JSON,但发现以下错误。 使用win10机器。 Perl版本5.8.8 尝试了其他一些模块的安装,并观察到相同的错误。

C:\Users\xxxx>cpan JSON
CPAN: Storable loaded ok (v2.16)
Going to read C:\Perl\cpan\sources\authors\01mailrc.txt.gz
CPAN: Compress::Zlib loaded ok (v1.4201)
............................................................................DONE
Going to read C:\Perl\cpan\sources\modules\02packages.details.txt.gz
Warning: Your C:\Perl\cpan\sources\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.
CPAN: Time::HiRes loaded ok (v1.9707)
Warning: Your C:\Perl\cpan\sources\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.
Can't use string ("CPAN::Index") as a HASH ref while "strict refs" in use at C:/Perl/lib/CPAN.pm line 4729.

C:\Users\xxxx>

有人对此有任何意见吗?

0 个答案:

没有答案
相关问题