Skip to content

Instantly share code, notes, and snippets.

@digitalbot
Created October 28, 2013 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save digitalbot/7200263 to your computer and use it in GitHub Desktop.
Save digitalbot/7200263 to your computer and use it in GitHub Desktop.
This is error_log of installing Web::Query.
# cpanm Web::Query -v
cpanm (App::cpanminus) 1.5007 on perl 5.008008 built for x86_64-linux
Work directory is /root/.cpanm/work/1382082093.19684
You have make /usr/bin/make
You have LWP 6.05
You have /bin/tar: tar (GNU tar) 1.15.1
You have /usr/bin/unzip
Searching Web::Query on cpanmetadb ...
--> Working on Web::Query
Fetching http://search.cpan.org/CPAN/authors/id/C/CA/CAFEGRATZ/Web-Query-0.23.tar.gz ... OK
Unpacking Web-Query-0.23.tar.gz
Web-Query-0.23/Build.PL
Web-Query-0.23/Changes
Web-Query-0.23/LICENSE
Web-Query-0.23/META.json
Web-Query-0.23/README.md
Web-Query-0.23/cpanfile
Web-Query-0.23/lib/Web/Query.pm
Web-Query-0.23/lib/Web/Query/LibXML.pm
Web-Query-0.23/t/00_compile.t
Web-Query-0.23/t/01_src.t
Web-Query-0.23/t/02_op.t
Web-Query-0.23/t/03_traverse.t
Web-Query-0.23/t/04_element.t
Web-Query-0.23/t/05_html5.t
Web-Query-0.23/t/06_new_from_url_error_handling.t
Web-Query-0.23/t/07_remove.t
Web-Query-0.23/t/08_indent.t
Web-Query-0.23/t/09_as_html.t
Web-Query-0.23/t/10_subclass.t
Web-Query-0.23/t/add.t
Web-Query-0.23/t/add_class.t
Web-Query-0.23/t/after.t
Web-Query-0.23/t/append.t
Web-Query-0.23/t/before.t
Web-Query-0.23/t/clone.t
Web-Query-0.23/t/contents.t
Web-Query-0.23/t/data/foo.html
Web-Query-0.23/t/data/html5_snippet.html
Web-Query-0.23/t/detach.t
Web-Query-0.23/t/filter.t
Web-Query-0.23/t/find.t
Web-Query-0.23/t/has_class.t
Web-Query-0.23/t/insert_after.t
Web-Query-0.23/t/insert_before.t
Web-Query-0.23/t/lib/My/TreeBuilder.pm
Web-Query-0.23/t/lib/My/Web/Query.pm
Web-Query-0.23/t/prepend.t
Web-Query-0.23/t/remove_class.t
Web-Query-0.23/t/replace_with.t
Web-Query-0.23/t/store_comments.t
Web-Query-0.23/xt/02_perlcritic.t
Web-Query-0.23/xt/live/01_simple.t
Web-Query-0.23/META.yml
Web-Query-0.23/MANIFEST
Entering Web-Query-0.23
Checking configure dependencies from META.yml
Checking if you have CPAN::Meta 0 ... Yes (2.120351)
Checking if you have Module::Build 0.38 ... Yes (0.3800)
Checking if you have CPAN::Meta::Prereqs 0 ... Yes (2.120351)
Configuring Web-Query-0.23 ... Running Build.PL
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Web-Query' version '0.23'
Merging cpanfile prereqs to MYMETA.yml
Merging cpanfile prereqs to MYMETA.json
OK
Checking dependencies from MYMETA.json ...
Checking if you have Test::More 0.98 ... Yes (0.99)
Checking if you have Scalar::Util 0 ... Yes (1.27)
Checking if you have HTML::TreeBuilder::XPath 0.12 ... Yes (0.14)
Checking if you have parent 0 ... Yes (0.228)
Checking if you have LWP::UserAgent 6 ... Yes (6.05)
Checking if you have HTML::Selector::XPath 0.06 ... Yes (0.16)
Checking if you have HTML::Entities 0 ... Yes (3.60)
Building and testing Web-Query-0.23 ... Building Web-Query
blib/lib/Web/Query/LibXML.pm:49: Unknown command paragraph "=encoding utf-8"
blib/lib/Web/Query.pm:460: Unknown command paragraph "=encoding utf8"
t/00_compile........................ok
t/01_src............................# testing Web::Query
t/01_src............................ok 1/0# testing Web::Query::LibXML
HTML parser error : Tag header invalid
<header>bar</header>
^
HTML parser error : Tag header invalid
<header>bar</header>
^
t/01_src............................ok
t/02_op.............................# testing Web::Query
t/02_op.............................ok 1/0# testing Web::Query::LibXML
t/02_op.............................ok
t/03_traverse.......................# testing Web::Query
t/03_traverse.......................ok 1/0# testing Web::Query::LibXML
t/03_traverse.......................ok
t/04_element........................# testing Web::Query
t/04_element........................ok 1/0# testing Web::Query::LibXML
t/04_element........................ok
t/05_html5..........................# testing Web::Query
t/05_html5..........................ok 1/0# testing Web::Query::LibXML
HTML parser error : Tag header invalid
<html><header>foo</header></html>
^
t/05_html5..........................ok
t/06_new_from_url_error_handling....ok
t/07_remove.........................# testing Web::Query
t/07_remove.........................ok 1/0
# Failed test '.foo and .bar are removed and not showing in html'
# at t/07_remove.t line 30.
# '<head><title>test1</title></head>
# <body></body>
# '
# doesn't match '(?-xism:^<head><title>test1</title></head><body>\s*</body>$)'
# Looks like you failed 1 test of 1.
t/07_remove.........................NOK 2# Failed test 'remove and html'
# at t/07_remove.t line 31.
# Failed test 'The chainning works.'
# at t/07_remove.t line 35.
# '<head><title>test1</title></head>
# <body></body>
# '
# doesn't match '(?-xism:^<head><title>test1</title></head><body>\s*</body>$)'
# Looks like you failed 1 test of 1.
t/07_remove.........................NOK 3# Failed test '$q->remove->end->html'
# at t/07_remove.t line 40.
# testing Web::Query::LibXML
# Looks like you failed 2 tests of 10.
t/07_remove.........................dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 2-3
Failed 2/10 tests, 80.00% okay
t/08_indent.........................
# Failed test 'no indent'
# at t/08_indent.t line 10.
t/08_indent.........................NOK 1# got: '<head></head>
# <body><p>Hi there</p></body>
# '
# expected: '<head></head><body><p>Hi there</p></body>'
t/08_indent.........................ok 2/2# Looks like you failed 1 test of 2.
t/08_indent.........................dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 1
Failed 1/2 tests, 50.00% okay
t/09_as_html........................# testing Web::Query
# Failed test 'html() returns inner html'
# at t/09_as_html.t line 24.
t/09_as_html........................NOK 1# got: '<head></head>
# <body><p>Hi there</p><p>How is life?</p></body>
# '
# expected: '<head></head><body><p>Hi there</p><p>How is life?</p></body>'
t/09_as_html........................NOK 2# Failed test 'as_html() returns element itself'
# at t/09_as_html.t line 25.
# got: '<html><head></head><body><p>Hi there</p><p>How is life?</p></body></html>
# '
# expected: '<html><head></head><body><p>Hi there</p><p>How is life?</p></body></html>'
t/09_as_html........................NOK 3# Failed test 'called in scalar context'
# at t/09_as_html.t line 30.
# got: '<p>Hi there</p>
# '
# expected: '<p>Hi there</p>'
t/09_as_html........................NOK 4# Failed test 'called in list context'
# at t/09_as_html.t line 31.
# Structures begin differing at:
# $got->[0] = '<p>Hi there</p>
# '
# $expected->[0] = '<p>Hi there</p>'
# testing Web::Query::LibXML
# Failed test 'html() returns inner html'
t/09_as_html........................NOK 5# at t/09_as_html.t line 24.
# got: '<head></head>
# <body><p>Hi there</p><p>How is life?</p></body>
# '
# expected: '<head></head><body><p>Hi there</p><p>How is life?</p></body>'
t/09_as_html........................NOK 6# Failed test 'as_html() returns element itself'
# at t/09_as_html.t line 25.
# got: '<html><head></head><body><p>Hi there</p><p>How is life?</p></body></html>
# '
# expected: '<html><head></head><body><p>Hi there</p><p>How is life?</p></body></html>'
t/09_as_html........................NOK 7# Failed test 'called in scalar context'
# at t/09_as_html.t line 30.
# got: '<p>Hi there</p>
# '
# expected: '<p>Hi there</p>'
t/09_as_html........................NOK 8# Failed test 'called in list context'
# at t/09_as_html.t line 31.
# Structures begin differing at:
# $got->[0] = '<p>Hi there</p>
# '
# $expected->[0] = '<p>Hi there</p>'
# Looks like you failed 8 tests of 8.
t/09_as_html........................dubious
Test returned status 8 (wstat 2048, 0x800)
DIED. FAILED tests 1-8
Failed 8/8 tests, 0.00% okay
t/10_subclass.......................ok
t/add...............................# testing Web::Query
# Failed test 'add($object)'
# at t/add.t line 29.
t/add...............................NOK 1# got: '<div class="foo">Foo</div>
# |<div class="bar">Bar</div>
# '
# expected: '<div class="foo">Foo</div>|<div class="bar">Bar</div>'
t/add...............................NOK 2# Failed test 'add($html)'
# at t/add.t line 34.
# got: '<div class="foo">Foo</div>
# |<div class="bar">Bar</div>
# '
# expected: '<div class="foo">Foo</div>|<div class="bar">Bar</div>'
t/add...............................NOK 3# Failed test 'add(@elements)'
# at t/add.t line 38.
# got: '<div class="foo">Foo</div>
# |<div class="foo">Foo</div>
# |<div class="bar">Bar</div>
# '
# expected: '<div class="foo">Foo</div>|<div class="foo">Foo</div>|<div class="bar">Bar</div>'
t/add...............................NOK 4# Failed test 'add($selector, $xpath_context)'
# at t/add.t line 42.
# got: '<div class="foo">Foo</div>
# |<div class="bar">Bar</div>
# '
# expected: '<div class="foo">Foo</div>|<div class="bar">Bar</div>'
# testing Web::Query::LibXML
t/add...............................ok 5/0# Looks like you failed 4 tests of 8.
t/add...............................dubious
Test returned status 4 (wstat 1024, 0x400)
DIED. FAILED tests 1-4
Failed 4/8 tests, 50.00% okay
t/add_class.........................# testing Web::Query
# Failed test 'add_class("foo bar inner")'
# at t/add_class.t line 26.
t/add_class.........................NOK 1# got: '<div class="container"><div class="inner foo bar">Hello</div><div class="inner foo bar">Goodbye</div></div>
# '
# expected: '<div class="container"><div class="inner foo bar">Hello</div><div class="inner foo bar">Goodbye</div></div>'
t/add_class.........................NOK 2# Failed test 'add_class(CODE)'
# at t/add_class.t line 36.
# got: '<div class="container"><div class="inner foo-0 bar">Hello</div><div class="inner foo-1 bar">Goodbye</div></div>
# '
# expected: '<div class="container"><div class="inner foo-0 bar">Hello</div><div class="inner foo-1 bar">Goodbye</div></div>'
# testing Web::Query::LibXML
t/add_class.........................ok 3/0# Looks like you failed 2 tests of 4.
t/add_class.........................dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-2
Failed 2/4 tests, 50.00% okay
t/after.............................# testing Web::Query
# Failed test 'after'
# at t/after.t line 22.
t/after.............................NOK 1# got: '<div class="container"><div class="inner">Hello</div><p>Test</p><div class="inner">Goodbye</div><p>Test</p></div>
# '
# expected: '<div class="container"><div class="inner">Hello</div><p>Test</p><div class="inner">Goodbye</div><p>Test</p></div>'
# testing Web::Query::LibXML
t/after.............................ok 2/0# Looks like you failed 1 test of 2.
t/after.............................dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 1
Failed 1/2 tests, 50.00% okay
t/append............................# testing Web::Query
# Failed test 'append'
# at t/append.t line 22.
t/append............................NOK 1# got: '<div class="container"><div class="inner">Hello<p>Test</p></div><div class="inner">Goodbye<p>Test</p></div></div>
# '
# expected: '<div class="container"><div class="inner">Hello<p>Test</p></div><div class="inner">Goodbye<p>Test</p></div></div>'
# testing Web::Query::LibXML
t/append............................ok 2/0# Looks like you failed 1 test of 2.
t/append............................dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 1
Failed 1/2 tests, 50.00% okay
t/before............................# testing Web::Query
# Failed test 'before'
# at t/before.t line 22.
t/before............................NOK 1# got: '<div class="container"><p>Test</p><div class="inner">Hello</div><p>Test</p><div class="inner">Goodbye</div></div>
# '
# expected: '<div class="container"><p>Test</p><div class="inner">Hello</div><p>Test</p><div class="inner">Goodbye</div></div>'
# testing Web::Query::LibXML
t/before............................ok 2/0# Looks like you failed 1 test of 2.
t/before............................dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 1
Failed 1/2 tests, 50.00% okay
t/clone.............................# testing Web::Query
# Failed test 'clone'
# at t/clone.t line 19.
t/clone.............................NOK 1# got: '<p><b>Hi</b><i>there</i><u>world</u></p>
# '
# expected: '<p><b>Hi</b><i>there</i><u>world</u></p>'
# testing Web::Query::LibXML
t/clone.............................ok 2/0# Looks like you failed 1 test of 2.
t/clone.............................dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 1
Failed 1/2 tests, 50.00% okay
t/contents..........................# testing Web::Query
# Failed test 'contents()'
# at t/contents.t line 21.
t/contents..........................NOK 1# got: '<p>foo</p>
# |<p>bar</p>
# |<span>baz</span>
# '
# expected: '<p>foo</p>|<p>bar</p>|<span>baz</span>'
t/contents..........................NOK 2# Failed test 'contents("p")'
# at t/contents.t line 22.
# got: '<p>foo</p>
# |<p>bar</p>
# '
# expected: '<p>foo</p>|<p>bar</p>'
# testing Web::Query::LibXML
t/contents..........................ok 3/0# Looks like you failed 2 tests of 4.
t/contents..........................dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-2
Failed 2/4 tests, 50.00% okay
t/detach............................# testing Web::Query
# Failed test 'detach - retval'
# at t/detach.t line 23.
t/detach............................NOK 1# got: '<div class="inner"><p>Hello</p></div>
# <div class="inner"><p>Goodbye</p></div>
# '
# expected: '<div class="inner"><p>Hello</p></div><div class="inner"><p>Goodbye</p></div>'
t/detach............................NOK 2# Failed test 'detach - original object modified'
# at t/detach.t line 24.
# got: '<div class="container"></div>
# '
# expected: '<div class="container"></div>'
t/detach............................ok 3/0# testing Web::Query::LibXML
# Looks like you failed 2 tests of 6.
t/detach............................dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-2
Failed 2/6 tests, 66.67% okay
t/filter............................# testing Web::Query
t/filter............................ok 1/0# testing Web::Query::LibXML
t/filter............................ok
t/find..............................# testing Web::Query
t/find..............................ok 1/0# testing Web::Query::LibXML
t/find..............................ok
t/has_class.........................# testing Web::Query
t/has_class.........................ok 1/0# testing Web::Query::LibXML
t/has_class.........................ok
t/insert_after......................# testing Web::Query
# Failed test 'insert_after'
# at t/insert_after.t line 23.
t/insert_after......................NOK 1# got: '<div class="container"><div class="inner">Hello</div><p>Test</p><div class="inner">Goodbye</div><p>Test</p></div>
# '
# expected: '<div class="container"><div class="inner">Hello</div><p>Test</p><div class="inner">Goodbye</div><p>Test</p></div>'
# testing Web::Query::LibXML
t/insert_after......................ok 2/0# Looks like you failed 1 test of 2.
t/insert_after......................dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 1
Failed 1/2 tests, 50.00% okay
t/insert_before.....................# testing Web::Query
# Failed test 'insert_before'
# at t/insert_before.t line 23.
t/insert_before.....................NOK 1# got: '<div class="container"><p>Test</p><div class="inner">Hello</div><p>Test</p><div class="inner">Goodbye</div></div>
# '
# expected: '<div class="container"><p>Test</p><div class="inner">Hello</div><p>Test</p><div class="inner">Goodbye</div></div>'
# testing Web::Query::LibXML
t/insert_before.....................ok 2/0# Looks like you failed 1 test of 2.
t/insert_before.....................dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 1
Failed 1/2 tests, 50.00% okay
t/prepend...........................# testing Web::Query
# Failed test 'prepend'
# at t/prepend.t line 23.
t/prepend...........................NOK 1# got: '<div class="container"><div class="inner"><p>Test</p>Hello</div><div class="inner"><p>Test</p>Goodbye</div></div>
# '
# expected: '<div class="container"><div class="inner"><p>Test</p>Hello</div><div class="inner"><p>Test</p>Goodbye</div></div>'
# testing Web::Query::LibXML
t/prepend...........................ok 2/0# Looks like you failed 1 test of 2.
t/prepend...........................dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 1
Failed 1/2 tests, 50.00% okay
t/remove_class......................# testing Web::Query
t/remove_class......................ok 1/0
t/remove_class......................NOK 2# Failed test 'remove_class("foo bar")'
# at t/remove_class.t line 24.
# got: '<div class="container"><div class="inner">Hello</div><div class="inner">Goodbye</div></div>
# '
# expected: '<div class="container"><div class="inner">Hello</div><div class="inner">Goodbye</div></div>'
t/remove_class......................NOK 3# Failed test 'remove_class(CODE)'
# at t/remove_class.t line 29.
# got: '<div class="container"><div class="inner">Hello</div><div class="inner">Goodbye</div></div>
# '
# expected: '<div class="container"><div class="inner">Hello</div><div class="inner">Goodbye</div></div>'
# testing Web::Query::LibXML
# Looks like you failed 2 tests of 6.
t/remove_class......................dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 2-3
Failed 2/6 tests, 66.67% okay
t/replace_with......................# testing Web::Query
# Failed test at t/replace_with.t line 21.
t/replace_with......................NOK 1# got: '<p><strong>Hello</strong><i>there</i><u>world</u></p>
# '
# expected: '<p><strong>Hello</strong><i>there</i><u>world</u></p>'
t/replace_with......................NOK 2# Failed test at t/replace_with.t line 26.
# got: '<p><i>there</i><b>Hi</b></p>
# '
# expected: '<p><i>there</i><b>Hi</b></p>'
t/replace_with......................NOK 3# Failed test at t/replace_with.t line 32.
# got: '<p><hi></hi><there></there><world></world></p>
# '
# expected: '<p><hi></hi><there></there><world></world></p>'
t/replace_with......................NOK 4# Failed test at t/replace_with.t line 34.
# got: '<p><blink></blink><blink></blink><blink></blink></p>
# '
# expected: '<p><blink></blink><blink></blink><blink></blink></p>'
# testing Web::Query::LibXML
t/replace_with......................ok 5/0HTML parser error : Tag hi invalid
<Hi></Hi>
^
HTML parser error : Tag there invalid
<there></there>
^
HTML parser error : Tag world invalid
<world></world>
^
HTML parser error : Tag blink invalid
<blink />
^
HTML parser error : Tag blink invalid
<blink />
^
HTML parser error : Tag blink invalid
<blink />
^
# Looks like you failed 4 tests of 8.
t/replace_with......................dubious
Test returned status 4 (wstat 1024, 0x400)
DIED. FAILED tests 1-4
Failed 4/8 tests, 50.00% okay
t/store_comments....................# testing Web::Query
# Failed test 'constructor stores comments'
# at t/store_comments.t line 21.
t/store_comments....................NOK 1# got: '<div><!-- header --><header></header></div>
# '
# expected: '<div><!-- header --><header></header></div>'
t/store_comments....................NOK 2# Failed test 'html() stores comments'
# at t/store_comments.t line 23.
# got: '<header><p><!-- comment --></p></header>
# '
# expected: '<header><p><!-- comment --></p></header>'
# testing Web::Query::LibXML
HTML parser error : Tag header invalid
<div><!-- header --><header></header></div>
^
t/store_comments....................ok 3/0HTML parser error : Tag header invalid
<div><!-- header --><header></header></div>
^
# Looks like you failed 2 tests of 4.
t/store_comments....................dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-2
Failed 2/4 tests, 50.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/07_remove.t 2 512 10 2 20.00% 2-3
t/08_indent.t 1 256 2 1 50.00% 1
t/09_as_html.t 8 2048 8 8 100.00% 1-8
t/add.t 4 1024 8 4 50.00% 1-4
t/add_class.t 2 512 4 2 50.00% 1-2
t/after.t 1 256 2 1 50.00% 1
t/append.t 1 256 2 1 50.00% 1
t/before.t 1 256 2 1 50.00% 1
t/clone.t 1 256 2 1 50.00% 1
t/contents.t 2 512 4 2 50.00% 1-2
t/detach.t 2 512 6 2 33.33% 1-2
t/insert_after.t 1 256 2 1 50.00% 1
t/insert_before.t 1 256 2 1 50.00% 1
t/prepend.t 1 256 2 1 50.00% 1
t/remove_class.t 2 512 6 2 33.33% 2-3
t/replace_with.t 4 1024 8 4 50.00% 1-4
t/store_comments.t 2 512 4 2 50.00% 1-2
Failed 17/28 test scripts, 39.29% okay. 36/135 subtests failed, 73.33% okay.
FAIL
! Installing Web::Query failed. See /root/.cpanm/build.log for details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment