Dear Monks,

I want to do some html parsing, but I am having problems installing HTML::Tree on mac osx 10.4.11. Is there another module I should use instead? The output from my failed install was lengthy, so I am including just parts of it:

$ perl -v This is perl, v5.10.1 (*) built for darwin-2level-thread-multi $ sudo perl -MCPAN -e shell Terminal does not support AddHistory. cpan shell -- CPAN exploration and modules installation (v1.9402) Enter 'h' for help. cpan[1]> install HTML::Tree ... .... ... Running make test PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" " +test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00system.t ........ 1/2 # Failed test 'use HTML::TreeBuilder;' # at t/00system.t line 7. # Tried to use 'HTML::TreeBuilder'. # Error: Can't load '/usr/local/lib/perl5/site_perl/5.10.1/darwin +-2level/auto/HTML/Parser/Parser.bundle' for module HTML::Parser: dlop +en(/usr/local/lib/perl5/site_perl/5.10.1/darwin-2level/auto/HTML/Pars +er/Parser.bundle, 2): Symbol not found: _PL_sv_undef # Referenced from: /usr/local/lib/perl5/site_perl/5.10.1/darwin-2lev +el/auto/HTML/Parser/Parser.bundle # Expected in: dynamic lookup .... # Failed test 'use HTML::TreeBuilder;' # at t/doctype.t line 7. # Failed test 'use HTML::Element;' # Failed test 'use HTML::Parse;' # at t/oldparse.t line 7. .... Test Summary Report ------------------- t/00system.t (Wstat: 512 Tests: 2 Failed: 2) Failed tests: 1-2 Non-zero exit status: 2 t/assubs.t (Wstat: 2304 Tests: 0 Failed: 0) Non-zero exit status: 9 Parse errors: No plan found in TAP output t/attributes.t (Wstat: 2304 Tests: 0 Failed: 0) Non-zero exit status: 9 Parse errors: Bad plan. You planned 1 tests but ran 0. t/body.t (Wstat: 65280 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 255 Parse errors: Bad plan. You planned 11 tests but ran 1. t/building.t (Wstat: 65280 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 255 Parse errors: Bad plan. You planned 39 tests but ran 1. t/children.t (Wstat: 65280 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 255 Parse errors: Bad plan. You planned 4 tests but ran 1. t/clonei.t (Wstat: 65280 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 255 Parse errors: Bad plan. You planned 4 tests but ran 1. t/construct_tree.t (Wstat: 65280 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 255 Parse errors: Bad plan. You planned 59 tests but ran 1. t/doctype.t (Wstat: 65280 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 255 Parse errors: Bad plan. You planned 5 tests but ran 1. t/escape.t (Wstat: 65280 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 255 Parse errors: Bad plan. You planned 21 tests but ran 1. t/oldparse.t (Wstat: 65280 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 255 Parse errors: Bad plan. You planned 17 tests but ran 1. t/parse.t (Wstat: 2304 Tests: 0 Failed: 0) Non-zero exit status: 9 Parse errors: Bad plan. You planned 40 tests but ran 0. t/parsefile.t (Wstat: 6400 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 25 Parse errors: Bad plan. You planned 5 tests but ran 1. t/split.t (Wstat: 65280 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 255 Parse errors: Bad plan. You planned 445 tests but ran 1. t/tag-rendering.t (Wstat: 65280 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 255 Parse errors: Bad plan. You planned 8 tests but ran 1. t/unicode.t (Wstat: 2304 Tests: 0 Failed: 0) Non-zero exit status: 9 Parse errors: Bad plan. You planned 11 tests but ran 0. Files=17, Tests=13, 2 wallclock secs ( 0.09 usr 0.09 sys + 0.62 cus +r 0.19 csys = 0.99 CPU) Result: FAIL Failed 16/17 test programs. 13/13 subtests failed. make: *** [test_dynamic] Error 9 PETEK/HTML-Tree-3.23.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports PETEK/HTML-Tree-3.23.tar.gz Running make install make test had returned bad status, won't install without force Failed during this command: PETEK/HTML-Tree-3.23.tar.gz : make_test NO

In reply to problems installing HTML::Tree by 7stud

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.