LibXML error

Posted by satish.rpr on 2008-08-28 03:57
Forums: PPM | OS: Windows XP Pro

Hi i have active perl 5.10 installed on my machine. I use Eclipse's EPIC to write perl scripts. I installed LibXML and when i include "use XML::LibXL" i get an error "Compilation failed in require". The error explanation in epic is as follows : Compilation failed in require
A fatal error (trappable)
Perl could not compile a file specified in a C statement.
Perl uses this generic message when none of the errors that it
encountered were severe enough to halt compilation immediately.

When i run the script from the command prompt i get a different error message
"This application has failed to start because libxml2.dll wasnot found. Re-installing the application may fix this problem." along with
Can't load 'C:/Perl/site/lib/auto/XML/LibXML/Common/Common.dll' for module XML::LibXML::Common: load_file:The specified module could not be found at C:/Perl/lib/ line 202.
at C:/Perl/site/lib/XML/ line 12
Compilation failed in require at C:/Perl/site/lib/XML/ line 12.
BEGIN failed--compilation aborted at C:/Perl/site/lib/XML/ line 12.
Compilation failed in require at C:/Documents and Settings/zzrnvl/workspace/PerlAssignment/ line 11.
BEGIN failed--compilation aborted at C:/Documents and Settings/zzrnvl/workspace/PerlAssignment/ line 11.
at C:/Documents and Settings/username/workspace/PerlAssignment/ line 11

Mark Thomas | Thu, 2008-09-11 18:43

For some reason the XML::LibXML installation fails to install its prerequisite first. You have to install XML::LibXML::Common before you install XML::LibXML. Then it will work.