簡體   English   中英

在Strawberry Perl中安裝XML :: Tidy

[英]Installing XML::Tidy in Strawberry Perl

嘗試在Strawberry Perl中安裝XML :: Tidy時

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

我完全不知道這里有什么問題。 任何人?

當您安裝CPAN模塊時,安裝程​​序通常會在安裝模塊之前對其進行測試。

在這種情況下,運行的測試之一是檢查模塊內文檔是否正確的測試。 並且失敗,因為它無法識別字符集。 您實際上不必擔心太多,因為這與代碼本身無關。

最好的辦法是“強制安裝”模塊:

cpan> force install XML::Tidy

即使其中一項測試未通過,它仍將運行測試套件,但會安裝。

順便說一句,我創建了帶有修復程序的RT票證來解決此問題: https : //rt.cpan.org/Ticket/Display.html?id=85592

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM