in reply to problems installing HTML::Tree

# 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

This makes me think that the error is more with HTML::Parser. How did you install HTML::Parser? It seems as if Perl finds a version of HTML::Parser compiled for another (older?) version of Perl.

Replies are listed 'Best First'.
Re^2: problems installing HTML::Tree
by 7stud (Deacon) on May 08, 2010 at 15:07 UTC

    How did you install HTML::Parser?

    I didn't. Normally, when I install a module from cpan, it installs all the prerequisites. Am I supposed to already have certain modules installed? Which ones? How would I know that?

      You see after cpan[1]> install HTML::Tree see all those ...? Thats when all that happens, when it tells you what you're missing (it doesn't actually check to see that its not broken, just present).

        Thanks. It was a little bit confusing figuring out what order all the modules mentioned in the error messages should be installed in. This is the order that worked for me:

        1) HTML::Parser 2) HTML::TreeBuilder 3) HTML::Element (a message said it was up to date) 4) HTML::Tree (a message said it was up to date)

        Then I tested HTML::Tree in a program, and it worked.

        Thanks for all the help!