2013-05-17 63 views
1

安装XML ::整洁尝试安装时XML ::整洁草莓的Perl草莓的Perl

C:\>perl --version 

This is perl 5, version 16, subversion 3 (v5.16.3) built for MSWin32-x86-multi-thread 

Copyright 1987-2012, Larry Wall 

Perl may be copied only under the terms of either the Artistic License or the 
GNU General Public License, which may be found in the Perl 5 source kit. 

Complete documentation for Perl, including FAQ lists, should be found on 
this system using "man perl" or "perldoc perl". If you have access to the 
Internet, point your browser at http://www.perl.org/, the Perl Home Page. 

我得到当测试运行有以下错误。

Creating new 'Build' script for 'XML-Tidy' version '1.12.B55J2qn' 
Building XML-Tidy 
    PIP/XML-Tidy-1.12.B55J2qn.tgz 
    C:\strawberry\perl\bin\perl.exe ./Build -- OK 
Running Build test 
t\00pod.t ..... 
t\00pod.t ..... 1/3 # Failed test 'POD test for blib/lib/XML/Tidy.pm' 
# at C:/strawberry/perl/site/lib/Test/Pod.pm line 186. 
# blib/lib/XML/Tidy.pm (811): Non-ASCII character seen before =encoding in '®'. Assuming ISO8859-1 
# Looks like you failed 1 test of 3. 
t\00pod.t ..... Dubious, test returned 1 (wstat 256, 0x100) 
Failed 1/3 subtests 
t\00podc.t .... ok 
t\00small.t ... ok 
t\01medium.t .. ok 
t\02large.t ... ok 
t\03prune.t ... ok 

我完全不知道这里会出现什么问题。任何人?

回答

1

当您安装CPAN模块时,安装程​​序通常会在安装之前为模块运行测试。

在这种情况下,运行的一个测试是一个测试,用于检查模块内文档是否正确;并且由于无法识别字符集而失败。这是真的,你应该担心太多,因为这与代码本身无关。

最好的事情做的是“强制安装”模块:

cpan> force install XML::Tidy 

这将仍然运行测试套件,但安装,即使其中一个测试不通过。

BTW我创建了一个RT票一个补丁来解决这个问题:https://rt.cpan.org/Ticket/Display.html?id=85592