2012-01-18 19 views
1

私のマシンにはperlバージョン5.008003があります。私はCPANを使ってXML :: Twigをインストールしようとしていますが、それに続くエラーで失敗しています。誰も助けることができます。PerlでXML :: Twigをインストールできない5.008003

t/xmlxpath_22name_select............ok 
t/xmlxpath_23func...................cannot use XML::Twig::XPath: neither XML::XP 
athEngine 0.09+ nor XML::XPath are available 
t/xmlxpath_23func...................ok 
t/xmlxpath_24namespaces.............cannot use XML::Twig::XPath: neither XML::XP 
athEngine 0.09+ nor XML::XPath are available 
t/xmlxpath_24namespaces.............ok 
t/xmlxpath_25scope..................cannot use XML::Twig::XPath: neither XML::XP 
athEngine 0.09+ nor XML::XPath are available 
t/xmlxpath_25scope..................ok 
t/xmlxpath_26predicate..............cannot use XML::Twig::XPath: neither XML::XP 
athEngine 0.09+ nor XML::XPath are available 
t/xmlxpath_26predicate..............ok 
t/xmlxpath_28ancestor2..............cannot use XML::Twig::XPath: neither XML::XP 
athEngine 0.09+ nor XML::XPath are available 
t/xmlxpath_28ancestor2..............ok 
t/xmlxpath_29desc_with_predicate....cannot use XML::Twig::XPath: neither XML::XP 
athEngine 0.09+ nor XML::XPath are available 
t/xmlxpath_29desc_with_predicate....ok 
t/xmlxpath_30lang...................cannot use XML::Twig::XPath: neither XML::XP 
athEngine 0.09+ nor XML::XPath are available 
t/xmlxpath_30lang...................ok 
t/xmlxpath_additional...............cannot use XML::Twig::XPath: neither XML::XP 
athEngine 0.09+ nor XML::XPath are available 
t/xmlxpath_additional...............ok 
t/xmlxpath_nav......................cannot use XML::Twig::XPath: neither XML::XP 
athEngine 0.09+ nor XML::XPath are available 
t/xmlxpath_nav......................ok 
t/xmlxpath_test1....................cannot use XML::Twig::XPath: neither XML::XP 
athEngine 0.09+ nor XML::XPath are available 
t/xmlxpath_test1....................ok 
t/xmlxpath_test_twig_roots..........cannot use XML::Twig::XPath: neither XML::XP 
athEngine 0.09+ nor XML::XPath are available 
t/xmlxpath_test_twig_roots..........ok 
t/xmlxpath_test_with_handlers.......cannot use XML::Twig::XPath: neither XML::XP 
athEngine 0.09+ nor XML::XPath are available 
t/xmlxpath_test_with_handlers.......ok 
t/xmlxpath_xpath_cond...............cannot use XML::Twig::XPath: neither XML::XP 
athEngine 0.09+ nor XML::XPath are available 
t/xmlxpath_xpath_cond...............ok 
t/zz_dump_config.................... 

Configuration: 

perl: 5.008003 
OS: MSWin32 - MSWin32 
required 
    XML::Parser    :    2.34 
'xmlwf' is not recognized as an internal or external command, 
operable program or batch file. 
Use of uninitialized value in sprintf at t/zz_dump_config.t line 113. 
    expat     : <no version information found> 
Strongly Recommended 
    Scalar::Util    :    1.13 (for improved memory management) 
    Encode     :    1.99 (for encoding conversions) 
Modules providing additional features 
    XML::XPathEngine   : <not available> (to use XML::Twig::XPath) 
    XML::XPath    : <not available> (to use XML::Twig::XPath if Tree:: 
XPathEngine not available) 
    LWP      :    5.75 (for the parseurl method) 
    HTML::TreeBuilder  :    3.13 (to use parse_html and parsefile_h 
tml) 
    HTML::Entities::Numbered : <not available> (to allow parsing of HTML containi 
ng named entities) 
    HTML::Tidy    : <not available> (to use parse_html and parsefile_h 
tml with the use_tidy option) 
    HTML::Entities   :    1.27 (for the html_encode filter) 
    Tie::IxHash    : <not available> (for the keep_atts_order option) 
    Text::Wrap    :  2001.09291 (to use the "wrapped" option for p 
retty_print) 
Modules used only by the auto tests 
    Test      :    1.24 
    Test::Pod    : <not available> 
    XML::Simple    :    2.09 
    XML::Handler::YAWriter : <not available> 
    XML::SAX::Writer   : <not available> 
    XML::Filter::BufferText :    1.01 
    IO::Scalar    : <not available> 


Please add this information to bug reports (you can run t\zz_dump_config.t to ge 
t it) 

if you are upgrading the module from a previous version, make sure you read the 
Changes file for bug fixes, new features and the occasional COMPATIBILITY WARNIN 
G 

t/zz_dump_config....................ok 
Failed Test Stat Wstat Total Fail Failed List of Failed 
------------------------------------------------------------------------------- 
t/test_3_36.t    67 1 1.49% 43 
Failed 1/96 test scripts, 98.96% okay. 1/2374 subtests failed, 99.96% okay. 
NMAKE : fatal error U1077: 'C:\WINNT\system32\cmd.exe' : return code '0xff' 
Stop. 
    NMAKE test -- NOT OK 
Running make install 
    make test had returned bad status, won't install without force 

cpan> 

私のすべての環境にこのバージョンのperlがありますので、最新のバージョンにアップグレードすることはできません。私はこのバージョンでのみ問題を修正する必要があります。

おかげで、

+0

XML :: XPathをインストールする必要があるようです。手動でインストールするか、自動的に依存関係に従うようにcpanを設定してください。 –

+0

これはプログラミングに直接関係しないため、これは話題にはなりません。それはsuperuser.comに属します。 –

+2

テストの1つが失敗しました。失敗したテストは表示されませんでした。あなたが示したすべてのテストは大丈夫でした。 't/test_3_36.t'の出力を表示します。 – ikegami

答えて

2

は、試験の要約によると、障害の一つは、T/test_3_36.tテスト43であるように見えます。あなたがそれを見ると、HTMLを解析するときにHTML :: TreeBuilderが&Amp;(大文字のAに注意)をどのように扱うかをテストします。 HTML :: TreeBuilderのバージョンに応じて、&Amp; &amp;として、&のエンティティとして処理することができます。あなたのマシン(3.13)にインストールされているバージョンでは、テストでは期待していないリテラル&Amp;として処理されているようです(正しく)。

HTML :: TreeBuilderは、HTMLを解析するためにXML :: Twigを使用する場合に使用されます。代わりに、HTML :: Tidy(インストールする必要があります)を使用することもできます。

モジュールをインストールしないのにこの問題が十分であるかどうかはわかりませんが、あなたは最良の判断を下す必要があります。

池上さんが言いましたように、あなたが質問に出した結果は最適ではありません。すべての警告をコピーする必要はありませんでした(それらの多くが表示されていますが、おそらく表示回数は少なくてもかまいませんが、XML :: XPathEngineをインストールするようユーザーに促すことを期待しています。

+3

該当する行方不明:CPANシェルで 'force install XML :: Twig'を実行してテストの失敗を無視し、モジュールをインストールします。 – daxim

関連する問題