rider754 has asked for the wisdom of the Perl Monks concerning the following question:
I am a bit befuddled about installing XML::LibXML (RHEL6.4, Perl 5.10.1). Our sysadmin seemed to have installed via yum "perl-libxml-perl". However, when I try to run a script I get compile error.
Can't locate XML/LibXML/Reader.pm in @INC (@INC contains: /usr/local/l +ib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/s +hare/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /home/ +steps/script/sap/act/test_new_xml_reader.pl line 4. BEGIN failed--compilation aborted at /home/steps/script/sap/act/test_n +ew_xml_reader.pl line 4.
Moreover, when we look at cpan, it seems that XML::LibXML was not installed. When we tried to install it, it bailed out pretty quickly.
My questions:
Warning (usually harmless): 'YAML' not installed, will not store persi +stent state Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t t/01basic.t .......................... 1/3 # # # Compiled against libxml2 version: 20706 # Running libxml2 version: 20706 # t/01basic.t .......................... ok t/02parse.t .......................... ok t/03doc.t ............................ ok t/04node.t ........................... ok t/05text.t ........................... ok t/06elements.t ....................... ok t/07dtd.t ............................ ok t/08findnodes.t ...................... ok t/09xpath.t .......................... ok t/10ns.t ............................. ok t/11memory.t ......................... skipped: developers only (set M +EMORY_TEST=1 to run these tests) t/12html.t ........................... ok t/13dtd.t ............................ ok t/14sax.t ............................ ok t/15nodelist.t ....................... ok t/16docnodes.t ....................... ok t/17callbacks.t ...................... ok t/18docfree.t ........................ ok t/19die_on_invalid_utf8_rt_58848.t ... ok t/19encoding.t ....................... ok t/20extras.t ......................... ok t/21catalog.t ........................ ok t/23rawfunctions.t ................... ok t/24c14n.t ........................... ok t/25relaxng.t ........................ ok t/26schema.t ......................... ok t/27new_callbacks_simple.t ........... ok t/28new_callbacks_multiple.t ......... ok t/29id.t ............................. ok t/30keep_blanks.t .................... ok t/30xpathcontext.t ................... ok t/31xpc_functions.t .................. ok t/32xpc_variables.t .................. ok t/40reader.t ......................... ok t/40reader_mem_error.t ............... ok t/41xinclude.t ....................... ok t/42common.t ......................... ok t/43options.t ........................ ok t/44extent.t ......................... ok t/45regex.t .......................... ok t/46err_column.t ..................... ok t/47load_xml_callbacks.t ............. ok t/48_removeChild_crashes_rt_80395.t .. ok t/48_rt55000.t ....................... ok t/48importing_nodes_IDs_rt_69520.t ... ok t/49_load_html.t ..................... ok t/49callbacks_returning_undef.t ...... file:///etc/xml/catalog:1: pars +er error : Document is empty ^ file:///etc/xml/catalog:1: parser error : Start tag expected, '<' not +found ^ # Looks like your test exited with 255 before it could output anything +. t/49callbacks_returning_undef.t ...... Dubious, test returned 255 (wst +at 65280, 0xff00) Failed 1/1 subtests t/49global_extent.t .................. ok t/50devel.t .......................... ok t/60error_prev_chain.t ............... ok t/60struct_error.t ................... ok t/61error.t .......................... ok t/62overload.t ....................... ok t/71overloads.t ...................... ok t/72destruction.t .................... ok t/80registryleak.t ................... ok t/90threads.t ........................ skipped: optional (set THREAD_T +EST=1 to run these tests) t/pod.t .............................. skipped: Test::Pod 1.14 require +d for testing POD t/style-trailing-space.t ............. skipped: Test::TrailingSpace re +quired for trailing space test. Test Summary Report ------------------- t/49callbacks_returning_undef.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 1 tests but ran 0. Files=59, Tests=2415, 6 wallclock secs ( 0.50 usr 0.13 sys + 5.01 c +usr 0.64 csys = 6.28 CPU) Result: FAIL Failed 1/59 test programs. 0/2415 subtests failed. make: *** [test_dynamic] Error 255 SHLOMIF/XML-LibXML-2.0014.tar.gz make test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports SHLOMIF/XML-LibXML-2.0014.tar.gz Warning (usually harmless): 'YAML' not installed, will not store persi +stent state Running make install make test had returned bad status, won't install without force Failed during this command: SHLOMIF/XML-LibXML-2.0014.tar.gz : make_test NO
<?xml version="1.0"?> <!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog +V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/ca +talog.dtd"> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"> < the rest is omitted ... >
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XML::LibXML installation on RHEL 6.4
by rider754 (Novice) on Feb 26, 2014 at 18:32 UTC | |
by taiko (Sexton) on Jun 26, 2017 at 07:22 UTC |