2012-01-18 3 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

테스트 중 하나가 실패했습니다. 실패한 테스트를 보여주지 않았습니다. 네가 보여준 모든 검사는 괜찮 았어. '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는 XML :: Twig를 사용하여 HTML을 구문 분석 할 때 사용됩니다. 대신 HTML :: Tidy (설치할 필요가 있음)를 사용할 수도 있습니다.

모듈을 설치하지 않을 정도로이 문제가 중요한지 여부에 관계없이 최선의 판단을 내려야합니다.

이케 가미 (Ikegami)가 언급했듯이, 질문에 전달한 결과가 최적이 아닙니다. 모든 경고를 복사 할 필요는 없었습니다 (그 중 많은 수의 항목이 표시 될 수 있습니다. 그러나 사용자가 XML :: XPathEngine을 설치하도록 유도 했으므로 출력을 그대로 두겠습니다).

+3

해당 없음 : CPAN 셸에서'force install XML :: Twig'을 실행하여 테스트 실패를 무시하고 어쨌든 모듈을 설치하십시오. – daxim

관련 문제