In the
XML::LibXML documentation, in the README file, it says:
XML::LibXML requires at least libxml2 2.6.16 to compile and pass all tests and
at least 2.6.21 is required for XML::LibXML::Reader. For some older OS versions
this means that an update of the pre-built packages is required.
What version of libxml2 do you have? The documentation recommends using xmllint but I don't know what that is, so I found my version like this:
lozier:~$ xml2-config
Usage: xml2-config [OPTION]
Known values for OPTION are:
--prefix=DIR change libxml prefix
--exec-prefix=DIR change libxml exec prefix
--libs print library linking information
--cflags print pre-processor and compiler flags
--modules module support enabled
--help display this help and exit
--version output version information
lozier:~$ xml2-config --version
2.6.23
lozier:~$