http://www.perlmonks.org?node_id=1033147

dw_perlmonks has asked for the wisdom of the Perl Monks concerning the following question:

Hi,
I'm trying to cpan install the module XML::LibXML::SAX but it complains that my version of libxml2 is too low. I've tried yum installing the latest libxml2 (2.9.0) but it seems like the yum repo for CentOS 6.4 isn't updated. I then tried to install libxml2-2.9.0 from the tarball, but i'm also getting errors.
Output shown below. Any tips here would be greatly appreciated to get the libxml2 and module installed. Thank you.
[danwong@vm-c64 ~]$ sudo cpan -i XML::LibXML::SAX CPAN: Storable loaded ok (v2.20) Reading '/root/.cpan/Metadata' Database was generated on Sat, 11 May 2013 19:29:03 GMT Running install for module 'XML::LibXML::SAX' Running make for S/SH/SHLOMIF/XML-LibXML-2.0017.tar.gz CPAN: Digest::SHA loaded ok (v5.47) CPAN: Compress::Zlib loaded ok (v2.02) Checksum for /root/.cpan/sources/authors/id/S/SH/SHLOMIF/XML-LibXML-2. +0017.tar.gz ok CPAN: Archive::Tar loaded ok (v1.58) XML-LibXML-2.0017/ XML-LibXML-2.0017/perl-libxml-mm.h XML-LibXML-2.0017/TODO XML-LibXML-2.0017/Changes XML-LibXML-2.0017/lib/ XML-LibXML-2.0017/lib/XML/ XML-LibXML-2.0017/lib/XML/LibXML/ XML-LibXML-2.0017/lib/XML/LibXML/CDATASection.pod XML-LibXML-2.0017/lib/XML/LibXML/Document.pod XML-LibXML-2.0017/lib/XML/LibXML/PI.pod XML-LibXML-2.0017/lib/XML/LibXML/Common.pod XML-LibXML-2.0017/lib/XML/LibXML/InputCallback.pod XML-LibXML-2.0017/lib/XML/LibXML/Literal.pm XML-LibXML-2.0017/lib/XML/LibXML/XPathExpression.pod XML-LibXML-2.0017/lib/XML/LibXML/SAX.pm XML-LibXML-2.0017/lib/XML/LibXML/NodeList.pm XML-LibXML-2.0017/lib/XML/LibXML/Schema.pod XML-LibXML-2.0017/lib/XML/LibXML/Error.pm XML-LibXML-2.0017/lib/XML/LibXML/Text.pod XML-LibXML-2.0017/lib/XML/LibXML/ErrNo.pod XML-LibXML-2.0017/lib/XML/LibXML/Pattern.pod XML-LibXML-2.0017/lib/XML/LibXML/Dtd.pod XML-LibXML-2.0017/lib/XML/LibXML/DocumentFragment.pod XML-LibXML-2.0017/lib/XML/LibXML/RelaxNG.pod XML-LibXML-2.0017/lib/XML/LibXML/XPathContext.pod XML-LibXML-2.0017/lib/XML/LibXML/Boolean.pm XML-LibXML-2.0017/lib/XML/LibXML/Devel.pm XML-LibXML-2.0017/lib/XML/LibXML/Number.pm XML-LibXML-2.0017/lib/XML/LibXML/Reader.pod XML-LibXML-2.0017/lib/XML/LibXML/Error.pod XML-LibXML-2.0017/lib/XML/LibXML/XPathContext.pm XML-LibXML-2.0017/lib/XML/LibXML/SAX.pod XML-LibXML-2.0017/lib/XML/LibXML/Reader.pm XML-LibXML-2.0017/lib/XML/LibXML/Common.pm XML-LibXML-2.0017/lib/XML/LibXML/Node.pod XML-LibXML-2.0017/lib/XML/LibXML/Element.pod XML-LibXML-2.0017/lib/XML/LibXML/SAX/ XML-LibXML-2.0017/lib/XML/LibXML/SAX/Generator.pm XML-LibXML-2.0017/lib/XML/LibXML/SAX/Parser.pm XML-LibXML-2.0017/lib/XML/LibXML/SAX/Builder.pm XML-LibXML-2.0017/lib/XML/LibXML/SAX/Builder.pod XML-LibXML-2.0017/lib/XML/LibXML/AttributeHash.pm XML-LibXML-2.0017/lib/XML/LibXML/RegExp.pod XML-LibXML-2.0017/lib/XML/LibXML/Parser.pod XML-LibXML-2.0017/lib/XML/LibXML/ErrNo.pm XML-LibXML-2.0017/lib/XML/LibXML/Attr.pod XML-LibXML-2.0017/lib/XML/LibXML/Namespace.pod XML-LibXML-2.0017/lib/XML/LibXML/Comment.pod XML-LibXML-2.0017/lib/XML/LibXML/DOM.pod XML-LibXML-2.0017/LICENSE XML-LibXML-2.0017/MANIFEST XML-LibXML-2.0017/xpath.h XML-LibXML-2.0017/inc/ XML-LibXML-2.0017/inc/Devel/ XML-LibXML-2.0017/inc/Devel/CheckLib.pm XML-LibXML-2.0017/example/ XML-LibXML-2.0017/example/test3.xml XML-LibXML-2.0017/example/JBR-ALLENtrees.htm XML-LibXML-2.0017/example/article_internal.xml XML-LibXML-2.0017/example/dtd.xml XML-LibXML-2.0017/example/xmlns/ XML-LibXML-2.0017/example/xmlns/goodguy.xml XML-LibXML-2.0017/example/xmlns/badguy.xml XML-LibXML-2.0017/example/cb_example.pl XML-LibXML-2.0017/example/utf-16-1.html XML-LibXML-2.0017/example/test.dtd XML-LibXML-2.0017/example/test4.xml XML-LibXML-2.0017/example/ext_ent.dtd XML-LibXML-2.0017/example/article_external_bad.xml XML-LibXML-2.0017/example/enc_latin2.html XML-LibXML-2.0017/example/xpath.pl XML-LibXML-2.0017/example/test.html XML-LibXML-2.0017/example/article.xml XML-LibXML-2.0017/example/article_internal_bad.xml XML-LibXML-2.0017/example/catalog.xml XML-LibXML-2.0017/example/bad.xml XML-LibXML-2.0017/example/utf-16-2.xml XML-LibXML-2.0017/example/test.xml XML-LibXML-2.0017/example/test2.xml XML-LibXML-2.0017/example/dromeds.xml XML-LibXML-2.0017/example/enc2_latin2.html XML-LibXML-2.0017/example/yahoo-finance-html-with-errors.html XML-LibXML-2.0017/example/article_bad.xml XML-LibXML-2.0017/example/complex/ XML-LibXML-2.0017/example/complex/complex.dtd XML-LibXML-2.0017/example/complex/dtd/ XML-LibXML-2.0017/example/complex/dtd/g.dtd XML-LibXML-2.0017/example/complex/dtd/f.dtd XML-LibXML-2.0017/example/complex/complex.xml XML-LibXML-2.0017/example/complex/complex2.xml XML-LibXML-2.0017/example/thedieline.rss XML-LibXML-2.0017/example/test.xhtml XML-LibXML-2.0017/example/xmllibxmldocs.pl XML-LibXML-2.0017/example/ns.xml XML-LibXML-2.0017/example/bad.dtd XML-LibXML-2.0017/example/utf-16-2.html XML-LibXML-2.0017/LibXML.pm XML-LibXML-2.0017/Av_CharPtrPtr.h XML-LibXML-2.0017/LibXML.pod XML-LibXML-2.0017/Makefile.PL XML-LibXML-2.0017/docs/ XML-LibXML-2.0017/docs/libxml.dbk XML-LibXML-2.0017/META.yml XML-LibXML-2.0017/Av_CharPtrPtr.c XML-LibXML-2.0017/test/ XML-LibXML-2.0017/test/schema/ XML-LibXML-2.0017/test/schema/demo.xml XML-LibXML-2.0017/test/schema/badschema.xsd XML-LibXML-2.0017/test/schema/invaliddemo.xml XML-LibXML-2.0017/test/schema/schema.xsd XML-LibXML-2.0017/test/xinclude/ XML-LibXML-2.0017/test/xinclude/entity.txt XML-LibXML-2.0017/test/xinclude/xinclude.xml XML-LibXML-2.0017/test/xinclude/test.xml XML-LibXML-2.0017/test/textReader/ XML-LibXML-2.0017/test/textReader/countries.xml XML-LibXML-2.0017/test/relaxng/ XML-LibXML-2.0017/test/relaxng/demo4.rng XML-LibXML-2.0017/test/relaxng/demo.xml XML-LibXML-2.0017/test/relaxng/demo3.rng XML-LibXML-2.0017/test/relaxng/badschema.rng XML-LibXML-2.0017/test/relaxng/invaliddemo.xml XML-LibXML-2.0017/test/relaxng/schema.rng XML-LibXML-2.0017/test/relaxng/demo2.rng XML-LibXML-2.0017/test/relaxng/demo.rng XML-LibXML-2.0017/META.json XML-LibXML-2.0017/perl-libxml-sax.h XML-LibXML-2.0017/Devel.xs XML-LibXML-2.0017/README XML-LibXML-2.0017/t/ XML-LibXML-2.0017/t/60struct_error.t XML-LibXML-2.0017/t/90threads.t XML-LibXML-2.0017/t/25relaxng.t XML-LibXML-2.0017/t/72destruction.t XML-LibXML-2.0017/t/29id.t XML-LibXML-2.0017/t/09xpath.t XML-LibXML-2.0017/t/lib/ XML-LibXML-2.0017/t/lib/Stacker.pm XML-LibXML-2.0017/t/lib/Counter.pm XML-LibXML-2.0017/t/lib/Collector.pm XML-LibXML-2.0017/t/lib/TestHelpers.pm XML-LibXML-2.0017/t/19encoding.t XML-LibXML-2.0017/t/style-trailing-space.t XML-LibXML-2.0017/t/41xinclude.t XML-LibXML-2.0017/t/46err_column.t XML-LibXML-2.0017/t/49callbacks_returning_undef.t XML-LibXML-2.0017/t/80registryleak.t XML-LibXML-2.0017/t/23rawfunctions.t XML-LibXML-2.0017/t/06elements.t XML-LibXML-2.0017/t/61error.t XML-LibXML-2.0017/t/27new_callbacks_simple.t XML-LibXML-2.0017/t/42common.t XML-LibXML-2.0017/t/62overload.t XML-LibXML-2.0017/t/28new_callbacks_multiple.t XML-LibXML-2.0017/t/03doc.t XML-LibXML-2.0017/t/60error_prev_chain.t XML-LibXML-2.0017/t/40reader.t XML-LibXML-2.0017/t/31xpc_functions.t XML-LibXML-2.0017/t/48_removeChild_crashes_rt_80395.t XML-LibXML-2.0017/t/43options.t XML-LibXML-2.0017/t/48_rt55000.t XML-LibXML-2.0017/t/05text.t XML-LibXML-2.0017/t/10ns.t XML-LibXML-2.0017/t/12html.t XML-LibXML-2.0017/t/17callbacks.t XML-LibXML-2.0017/t/48importing_nodes_IDs_rt_69520.t XML-LibXML-2.0017/t/21catalog.t XML-LibXML-2.0017/t/30keep_blanks.t XML-LibXML-2.0017/t/20extras.t XML-LibXML-2.0017/t/26schema.t XML-LibXML-2.0017/t/pod.t XML-LibXML-2.0017/t/47load_xml_callbacks.t XML-LibXML-2.0017/t/13dtd.t XML-LibXML-2.0017/t/35huge_mode.t XML-LibXML-2.0017/t/71overloads.t XML-LibXML-2.0017/t/data/ XML-LibXML-2.0017/t/data/callbacks_returning_undef.xml XML-LibXML-2.0017/t/07dtd.t XML-LibXML-2.0017/t/49global_extent.t XML-LibXML-2.0017/t/40reader_mem_error.t XML-LibXML-2.0017/t/04node.t XML-LibXML-2.0017/t/24c14n.t XML-LibXML-2.0017/t/14sax.t XML-LibXML-2.0017/t/44extent.t XML-LibXML-2.0017/t/45regex.t XML-LibXML-2.0017/t/11memory.t XML-LibXML-2.0017/t/01basic.t XML-LibXML-2.0017/t/50devel.t XML-LibXML-2.0017/t/18docfree.t XML-LibXML-2.0017/t/08findnodes.t XML-LibXML-2.0017/t/19die_on_invalid_utf8_rt_58848.t XML-LibXML-2.0017/t/49_load_html.t XML-LibXML-2.0017/t/02parse.t XML-LibXML-2.0017/t/15nodelist.t XML-LibXML-2.0017/t/16docnodes.t XML-LibXML-2.0017/t/30xpathcontext.t XML-LibXML-2.0017/t/32xpc_variables.t XML-LibXML-2.0017/perl-libxml-sax.c XML-LibXML-2.0017/debian/ XML-LibXML-2.0017/debian/changelog XML-LibXML-2.0017/debian/libxml-libxml-perl.install XML-LibXML-2.0017/debian/libxml-libxml-perl.postinst XML-LibXML-2.0017/debian/libxml-libxml-perl.examples XML-LibXML-2.0017/debian/libxml-libxml-perl.prerm XML-LibXML-2.0017/debian/copyright XML-LibXML-2.0017/debian/compat XML-LibXML-2.0017/debian/libxml-libxml-perl.docs XML-LibXML-2.0017/debian/control XML-LibXML-2.0017/debian/rules XML-LibXML-2.0017/typemap XML-LibXML-2.0017/scripts/ XML-LibXML-2.0017/scripts/bump-version-number.pl XML-LibXML-2.0017/scripts/tag-release.pl XML-LibXML-2.0017/scripts/fast-eumm.pl XML-LibXML-2.0017/scripts/update-HACKING-file.bash XML-LibXML-2.0017/scripts/prints-to-comments.pl XML-LibXML-2.0017/scripts/Test.pm-to-Test-More.pl XML-LibXML-2.0017/LibXML.xs XML-LibXML-2.0017/ppport.h XML-LibXML-2.0017/xpath.c XML-LibXML-2.0017/dom.c XML-LibXML-2.0017/HACKING.txt XML-LibXML-2.0017/perl-libxml-mm.c XML-LibXML-2.0017/xpathcontext.h XML-LibXML-2.0017/dom.h CPAN: File::Temp loaded ok (v0.22) CPAN: Parse::CPAN::Meta loaded ok (v1.4401) CPAN: CPAN::Meta loaded ok (v2.112621) CPAN: Module::CoreList loaded ok (v2.18) CPAN.pm: Building S/SH/SHLOMIF/XML-LibXML-2.0017.tar.gz enable native perl UTF8 running xml2-config...The installed version of libxml2 is too low, as +older versions proved to be buggy. You need at least version 2.9.0. You have version 2.7.6 . No 'Makefile' created'YAML' not installed, will not store persistent s +tate SHLOMIF/XML-LibXML-2.0017.tar.gz /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK Running make test Make had some problems, won't test Running make install Make had some problems, won't install Could not read metadata file. Falling back to other methods to determi +ne prerequisites

Installing the libxml2 tarball:
[danwong@vm-c64 ~]$ sudo rpm -i libxml2-2.9.0-1.x86_64.rpm [sudo] password for danwong: warning: libxml2-2.9.0-1.x86_64.rpm: Header V4 DSA/SHA1 Signature, key + ID de95bc1f: NOKEY error: Failed dependencies: libc.so.6(GLIBC_2.14)(64bit) is needed by libxml2-2.9.0-1.x86_ +64 libc.so.6(GLIBC_2.15)(64bit) is needed by libxml2-2.9.0-1.x86_ +64 liblzma.so.5()(64bit) is needed by libxml2-2.9.0-1.x86_64 libz.so.1(ZLIB_1.2.3.3)(64bit) is needed by libxml2-2.9.0-1.x8 +6_64