DugganSC has asked for the wisdom of the Perl Monks concerning the following question:
I am a Perl newbie who decided to try parsing XML using the code and suggested libraries from this tutorial. I am having issues including libraries such as XML::TreeBuilder and HTML::TreeBuilder. I downloaded the code from CPAN (due to various issues with the computers at work, I cannot use "ppm") and put it in the correct directory, but when I try to compile either the Makefile.pl, I get the following error:
C:\Temp\TreeBuilder\XML-TreeBuilder-3.09>perl MakeFile.PL Warning: prerequisite HTML::Element failed to load: HTML::Parser objec +t version 3.26 does not match bootstrap parameter 3.66 at C:/Perl/lib +/DynaLoader.pm line 25. Compilation failed in require at C:/Perl/site/lib/HTML/Entities.pm lin +e 79. Compilation failed in require at C:/Perl/lib/HTML/Element.pm line 15. BEGIN failed--compilation aborted at C:/Perl/lib/HTML/Element.pm line +15. Compilation failed in require at (eval 4) line 3. Writing Makefile for XML-TreeBuilder
I get a similar error message when I try to compile simple code like:
#!/usr/bin/perl -w # # Perform skeleton remapping for given mesh # use XML::TreeBuilder; my $file = $ARGV[0]; my $tree = XML::TreeBuilder->new(); $tree->parse_file($file);
I'm sure I'm missing something obvious here... could anyone enlighten me?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Bootstrap Version Issues including HTML and XML libraries
by marto (Cardinal) on Aug 27, 2010 at 16:54 UTC | |
by DugganSC (Initiate) on Aug 27, 2010 at 16:58 UTC | |
by marto (Cardinal) on Aug 27, 2010 at 17:01 UTC | |
|
Re: Bootstrap Version Issues including HTML and XML libraries
by syphilis (Archbishop) on Aug 28, 2010 at 08:23 UTC |