April 17th, 2013, 09:02 AM
-
Trouble Installing XML::LibXML
I am having trouble installing XML::LibXML because it can't seem to find libxml2. I ran 'yum install libxml2' and it says it is up to date. However, when I do 'ls /usr/lib/libxml2*' I get this:
/usr/lib/libxml2.so.2 /usr/lib/libxml2.so.2.7.6
Should there not be just a /usr/lib/libxml2.so? Is there perhaps a symlink missing? If so which should it point to? TIA.
There are 10 kinds of people in the world. Those that understand binary and those that don't.
April 17th, 2013, 09:18 AM
-
how are you installing libxml, cpan?
--Ax
without exception, there is no rule ...
Handmade Irish Jewellery
Targeted Advertising Cookie Optout (TACO) extension for Firefox
The great thing about Object Oriented code is that it can make small, simple problems look like large, complex ones


09 F9 11 02
9D 74 E3 5B
D8 41 56 C5
63 56 88 C0
Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems. -- Jamie Zawinski
Deta
vil - the devil is in the detail, allegedly, and I use the term advisedly, allegedly ... oh, no, wait I did ...
BIT COINS ANYONE
April 17th, 2013, 09:20 AM
-
This is what I have.
[root@099-91-RKB-2 ~]# ls -l /usr/lib/libxml2*
Code:
-rw-r--r-- 1 root root 1537564 Nov 29 11:36 /usr/lib/libxml2.a
lrwxrwxrwx 1 root root 17 Dec 21 06:22 /usr/lib/libxml2.so -> libxml2.so.2.6.26
lrwxrwxrwx 1 root root 17 Dec 21 06:22 /usr/lib/libxml2.so.2 -> libxml2.so.2.6.26
-rwxr-xr-x 1 root root 1252732 Nov 29 11:36 /usr/lib/libxml2.so.2.6.26
The module install failed for me as well, but for a different reason.
t/40reader_mem_error.t ............... *** glibc detected *** /usr/bin/perl: corrupted double-linked list: 0x000000001799a810 ***
April 17th, 2013, 09:25 AM
-
I don't know why but I am indeed missing a symlink
Code:
lrwxrwxrwx 1 root root 16 Apr 17 09:46 /usr/lib/libxml2.so.2 -> libxml2.so.2.7.6
-rwxr-xr-x 1 root root 1349132 Mar 1 04:40 /usr/lib/libxml2.so.2.7.6
However, I can see now which to point it to. Thanks.
There are 10 kinds of people in the world. Those that understand binary and those that don't.
April 17th, 2013, 09:30 AM
-
Now I have:
Code:
lrwxrwxrwx 1 root root 16 Apr 17 10:27 /usr/lib/libxml2.so -> libxml2.so.2.7.6
lrwxrwxrwx 1 root root 16 Apr 17 09:46 /usr/lib/libxml2.so.2 -> libxml2.so.2.7.6
-rwxr-xr-x 1 root root 1349132 Mar 1 04:40 /usr/lib/libxml2.so.2.7.6
Unfortunately that did not help (yes I am using CPAN). Perhaps I am not understanding the error:
Code:
CPAN: Storable loaded ok (v2.20)
Reading '/root/.cpan/Metadata'
Database was generated on Wed, 17 Apr 2013 11:53:02 GMT
Running install for module 'XML::LibXML'
Running make for S/SH/SHLOMIF/XML-LibXML-2.0016.tar.gz
CPAN: Digest::SHA loaded ok (v5.47)
CPAN: Compress::Zlib loaded ok (v2.052)
Checksum for /root/.cpan/sources/authors/id/S/SH/SHLOMIF/XML-LibXML-2.0016.tar.gz ok
Scanning cache /root/.cpan/build for sizes
............................................................................DONE
CPAN: Archive::Tar loaded ok (v1.58)
XML-LibXML-2.0016/
XML-LibXML-2.0016/perl-libxml-mm.h
XML-LibXML-2.0016/TODO
XML-LibXML-2.0016/Changes
XML-LibXML-2.0016/lib/
XML-LibXML-2.0016/lib/XML/
XML-LibXML-2.0016/lib/XML/LibXML/
XML-LibXML-2.0016/lib/XML/LibXML/CDATASection.pod
XML-LibXML-2.0016/lib/XML/LibXML/Document.pod
XML-LibXML-2.0016/lib/XML/LibXML/PI.pod
XML-LibXML-2.0016/lib/XML/LibXML/Common.pod
XML-LibXML-2.0016/lib/XML/LibXML/InputCallback.pod
XML-LibXML-2.0016/lib/XML/LibXML/Literal.pm
XML-LibXML-2.0016/lib/XML/LibXML/XPathExpression.pod
XML-LibXML-2.0016/lib/XML/LibXML/SAX.pm
XML-LibXML-2.0016/lib/XML/LibXML/NodeList.pm
XML-LibXML-2.0016/lib/XML/LibXML/Schema.pod
XML-LibXML-2.0016/lib/XML/LibXML/Error.pm
XML-LibXML-2.0016/lib/XML/LibXML/Text.pod
XML-LibXML-2.0016/lib/XML/LibXML/ErrNo.pod
XML-LibXML-2.0016/lib/XML/LibXML/Pattern.pod
XML-LibXML-2.0016/lib/XML/LibXML/Dtd.pod
XML-LibXML-2.0016/lib/XML/LibXML/DocumentFragment.pod
XML-LibXML-2.0016/lib/XML/LibXML/RelaxNG.pod
XML-LibXML-2.0016/lib/XML/LibXML/XPathContext.pod
XML-LibXML-2.0016/lib/XML/LibXML/Boolean.pm
XML-LibXML-2.0016/lib/XML/LibXML/Devel.pm
XML-LibXML-2.0016/lib/XML/LibXML/Number.pm
XML-LibXML-2.0016/lib/XML/LibXML/Reader.pod
XML-LibXML-2.0016/lib/XML/LibXML/Error.pod
XML-LibXML-2.0016/lib/XML/LibXML/XPathContext.pm
XML-LibXML-2.0016/lib/XML/LibXML/SAX.pod
XML-LibXML-2.0016/lib/XML/LibXML/Reader.pm
XML-LibXML-2.0016/lib/XML/LibXML/Common.pm
XML-LibXML-2.0016/lib/XML/LibXML/Node.pod
XML-LibXML-2.0016/lib/XML/LibXML/Element.pod
XML-LibXML-2.0016/lib/XML/LibXML/SAX/
XML-LibXML-2.0016/lib/XML/LibXML/SAX/Generator.pm
XML-LibXML-2.0016/lib/XML/LibXML/SAX/Parser.pm
XML-LibXML-2.0016/lib/XML/LibXML/SAX/Builder.pm
XML-LibXML-2.0016/lib/XML/LibXML/SAX/Builder.pod
XML-LibXML-2.0016/lib/XML/LibXML/AttributeHash.pm
XML-LibXML-2.0016/lib/XML/LibXML/RegExp.pod
XML-LibXML-2.0016/lib/XML/LibXML/Parser.pod
XML-LibXML-2.0016/lib/XML/LibXML/ErrNo.pm
XML-LibXML-2.0016/lib/XML/LibXML/Attr.pod
XML-LibXML-2.0016/lib/XML/LibXML/Namespace.pod
XML-LibXML-2.0016/lib/XML/LibXML/Comment.pod
XML-LibXML-2.0016/lib/XML/LibXML/DOM.pod
XML-LibXML-2.0016/LICENSE
XML-LibXML-2.0016/MANIFEST
XML-LibXML-2.0016/xpath.h
XML-LibXML-2.0016/inc/
XML-LibXML-2.0016/inc/Devel/
XML-LibXML-2.0016/inc/Devel/CheckLib.pm
XML-LibXML-2.0016/example/
XML-LibXML-2.0016/example/test3.xml
XML-LibXML-2.0016/example/JBR-ALLENtrees.htm
XML-LibXML-2.0016/example/article_internal.xml
XML-LibXML-2.0016/example/dtd.xml
XML-LibXML-2.0016/example/xmlns/
XML-LibXML-2.0016/example/xmlns/goodguy.xml
XML-LibXML-2.0016/example/xmlns/badguy.xml
XML-LibXML-2.0016/example/cb_example.pl
XML-LibXML-2.0016/example/utf-16-1.html
XML-LibXML-2.0016/example/test.dtd
XML-LibXML-2.0016/example/test4.xml
XML-LibXML-2.0016/example/ext_ent.dtd
XML-LibXML-2.0016/example/article_external_bad.xml
XML-LibXML-2.0016/example/enc_latin2.html
XML-LibXML-2.0016/example/xpath.pl
XML-LibXML-2.0016/example/test.html
XML-LibXML-2.0016/example/article.xml
XML-LibXML-2.0016/example/article_internal_bad.xml
XML-LibXML-2.0016/example/catalog.xml
XML-LibXML-2.0016/example/bad.xml
XML-LibXML-2.0016/example/utf-16-2.xml
XML-LibXML-2.0016/example/test.xml
XML-LibXML-2.0016/example/test2.xml
XML-LibXML-2.0016/example/dromeds.xml
XML-LibXML-2.0016/example/enc2_latin2.html
XML-LibXML-2.0016/example/yahoo-finance-html-with-errors.html
XML-LibXML-2.0016/example/article_bad.xml
XML-LibXML-2.0016/example/complex/
XML-LibXML-2.0016/example/complex/complex.dtd
XML-LibXML-2.0016/example/complex/dtd/
XML-LibXML-2.0016/example/complex/dtd/g.dtd
XML-LibXML-2.0016/example/complex/dtd/f.dtd
XML-LibXML-2.0016/example/complex/complex.xml
XML-LibXML-2.0016/example/complex/complex2.xml
XML-LibXML-2.0016/example/thedieline.rss
XML-LibXML-2.0016/example/test.xhtml
XML-LibXML-2.0016/example/xmllibxmldocs.pl
XML-LibXML-2.0016/example/ns.xml
XML-LibXML-2.0016/example/bad.dtd
XML-LibXML-2.0016/example/utf-16-2.html
XML-LibXML-2.0016/LibXML.pm
XML-LibXML-2.0016/Av_CharPtrPtr.h
XML-LibXML-2.0016/LibXML.pod
XML-LibXML-2.0016/Makefile.PL
XML-LibXML-2.0016/docs/
XML-LibXML-2.0016/docs/libxml.dbk
XML-LibXML-2.0016/META.yml
XML-LibXML-2.0016/Av_CharPtrPtr.c
XML-LibXML-2.0016/test/
XML-LibXML-2.0016/test/schema/
XML-LibXML-2.0016/test/schema/demo.xml
XML-LibXML-2.0016/test/schema/badschema.xsd
XML-LibXML-2.0016/test/schema/invaliddemo.xml
XML-LibXML-2.0016/test/schema/schema.xsd
XML-LibXML-2.0016/test/xinclude/
XML-LibXML-2.0016/test/xinclude/entity.txt
XML-LibXML-2.0016/test/xinclude/xinclude.xml
XML-LibXML-2.0016/test/xinclude/test.xml
XML-LibXML-2.0016/test/textReader/
XML-LibXML-2.0016/test/textReader/countries.xml
XML-LibXML-2.0016/test/relaxng/
XML-LibXML-2.0016/test/relaxng/demo4.rng
XML-LibXML-2.0016/test/relaxng/demo.xml
XML-LibXML-2.0016/test/relaxng/demo3.rng
XML-LibXML-2.0016/test/relaxng/badschema.rng
XML-LibXML-2.0016/test/relaxng/invaliddemo.xml
XML-LibXML-2.0016/test/relaxng/schema.rng
XML-LibXML-2.0016/test/relaxng/demo2.rng
XML-LibXML-2.0016/test/relaxng/demo.rng
XML-LibXML-2.0016/META.json
XML-LibXML-2.0016/perl-libxml-sax.h
XML-LibXML-2.0016/Devel.xs
XML-LibXML-2.0016/README
XML-LibXML-2.0016/t/
XML-LibXML-2.0016/t/60struct_error.t
XML-LibXML-2.0016/t/90threads.t
XML-LibXML-2.0016/t/25relaxng.t
XML-LibXML-2.0016/t/72destruction.t
XML-LibXML-2.0016/t/29id.t
XML-LibXML-2.0016/t/09xpath.t
XML-LibXML-2.0016/t/lib/
XML-LibXML-2.0016/t/lib/Stacker.pm
XML-LibXML-2.0016/t/lib/Counter.pm
XML-LibXML-2.0016/t/lib/Collector.pm
XML-LibXML-2.0016/t/lib/TestHelpers.pm
XML-LibXML-2.0016/t/19encoding.t
XML-LibXML-2.0016/t/style-trailing-space.t
XML-LibXML-2.0016/t/41xinclude.t
XML-LibXML-2.0016/t/46err_column.t
XML-LibXML-2.0016/t/49callbacks_returning_undef.t
XML-LibXML-2.0016/t/80registryleak.t
XML-LibXML-2.0016/t/23rawfunctions.t
XML-LibXML-2.0016/t/06elements.t
XML-LibXML-2.0016/t/61error.t
XML-LibXML-2.0016/t/27new_callbacks_simple.t
XML-LibXML-2.0016/t/42common.t
XML-LibXML-2.0016/t/62overload.t
XML-LibXML-2.0016/t/28new_callbacks_multiple.t
XML-LibXML-2.0016/t/03doc.t
XML-LibXML-2.0016/t/60error_prev_chain.t
XML-LibXML-2.0016/t/40reader.t
XML-LibXML-2.0016/t/31xpc_functions.t
XML-LibXML-2.0016/t/48_removeChild_crashes_rt_80395.t
XML-LibXML-2.0016/t/43options.t
XML-LibXML-2.0016/t/48_rt55000.t
XML-LibXML-2.0016/t/05text.t
XML-LibXML-2.0016/t/10ns.t
XML-LibXML-2.0016/t/12html.t
XML-LibXML-2.0016/t/17callbacks.t
XML-LibXML-2.0016/t/48importing_nodes_IDs_rt_69520.t
XML-LibXML-2.0016/t/21catalog.t
XML-LibXML-2.0016/t/30keep_blanks.t
XML-LibXML-2.0016/t/20extras.t
XML-LibXML-2.0016/t/26schema.t
XML-LibXML-2.0016/t/pod.t
XML-LibXML-2.0016/t/47load_xml_callbacks.t
XML-LibXML-2.0016/t/13dtd.t
XML-LibXML-2.0016/t/35huge_mode.t
XML-LibXML-2.0016/t/71overloads.t
XML-LibXML-2.0016/t/data/
XML-LibXML-2.0016/t/data/callbacks_returning_undef.xml
XML-LibXML-2.0016/t/07dtd.t
XML-LibXML-2.0016/t/49global_extent.t
XML-LibXML-2.0016/t/40reader_mem_error.t
XML-LibXML-2.0016/t/04node.t
XML-LibXML-2.0016/t/24c14n.t
XML-LibXML-2.0016/t/14sax.t
XML-LibXML-2.0016/t/44extent.t
XML-LibXML-2.0016/t/45regex.t
XML-LibXML-2.0016/t/11memory.t
XML-LibXML-2.0016/t/01basic.t
XML-LibXML-2.0016/t/50devel.t
XML-LibXML-2.0016/t/18docfree.t
XML-LibXML-2.0016/t/08findnodes.t
XML-LibXML-2.0016/t/19die_on_invalid_utf8_rt_58848.t
XML-LibXML-2.0016/t/49_load_html.t
XML-LibXML-2.0016/t/02parse.t
XML-LibXML-2.0016/t/15nodelist.t
XML-LibXML-2.0016/t/16docnodes.t
XML-LibXML-2.0016/t/30xpathcontext.t
XML-LibXML-2.0016/t/32xpc_variables.t
XML-LibXML-2.0016/perl-libxml-sax.c
XML-LibXML-2.0016/debian/
XML-LibXML-2.0016/debian/changelog
XML-LibXML-2.0016/debian/libxml-libxml-perl.install
XML-LibXML-2.0016/debian/libxml-libxml-perl.postinst
XML-LibXML-2.0016/debian/libxml-libxml-perl.examples
XML-LibXML-2.0016/debian/libxml-libxml-perl.prerm
XML-LibXML-2.0016/debian/copyright
XML-LibXML-2.0016/debian/compat
XML-LibXML-2.0016/debian/libxml-libxml-perl.docs
XML-LibXML-2.0016/debian/control
XML-LibXML-2.0016/debian/rules
XML-LibXML-2.0016/typemap
XML-LibXML-2.0016/scripts/
XML-LibXML-2.0016/scripts/bump-version-number.pl
XML-LibXML-2.0016/scripts/tag-release.pl
XML-LibXML-2.0016/scripts/fast-eumm.pl
XML-LibXML-2.0016/scripts/update-HACKING-file.bash
XML-LibXML-2.0016/scripts/prints-to-comments.pl
XML-LibXML-2.0016/scripts/Test.pm-to-Test-More.pl
XML-LibXML-2.0016/LibXML.xs
XML-LibXML-2.0016/ppport.h
XML-LibXML-2.0016/xpath.c
XML-LibXML-2.0016/dom.c
XML-LibXML-2.0016/HACKING.txt
XML-LibXML-2.0016/perl-libxml-mm.c
XML-LibXML-2.0016/xpathcontext.h
XML-LibXML-2.0016/dom.h
CPAN: File::Temp loaded ok (v0.22)
CPAN: Parse::CPAN::Meta loaded ok (v1.4401)
CPAN: CPAN::Meta loaded ok (v2.112150)
CPAN: Module::CoreList loaded ok (v2.18)
CPAN.pm: Building S/SH/SHLOMIF/XML-LibXML-2.0016.tar.gz
enable native perl UTF8
running xml2-config...didn't manage to get libxml2 config, guessing
options:
LIBS='-L/usr/local/lib -L/usr/lib -lxml2 -lm'
INC='-I/usr/local/include -I/usr/include'
If this is wrong, Re-run as:
$ /usr/bin/perl Makefile.PL LIBS='-L/path/to/lib' INC='-I/path/to/include'
Checking for ability to link against xml2...no
Checking for ability to link against libxml2...libxml2, zlib, and/or the Math library (-lm) have not been found.
Try setting LIBS and INC values on the command line
Or get libxml2 from
http://xmlsoft.org/
If you install via RPMs, make sure you also install the -devel
RPMs, as this is where the headers (.h files) are.
Also, you may try to run perl Makefile.PL with the DEBUG=1 parameter
to see the exact reason why the detection of libxml2 installation
failed or why Makefile.PL was not able to compile a test program.
No 'Makefile' createdCPAN: YAML loaded ok (v0.81)
SHLOMIF/XML-LibXML-2.0016.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 determine prerequisites
Failed during this command:
SHLOMIF/XML-LibXML-2.0016.tar.gz : writemakefile NO -- No 'Makefile' created
There are 10 kinds of people in the world. Those that understand binary and those that don't.
April 17th, 2013, 09:46 AM
-
It looks like you might be missing /usr/bin/xml2-config
You may also need to install the devel libs i.e., libxml2-devel
Code:
[root@099-91-RKB-2 ~]# yum list | grep libxml
libxml2.i386 2.6.26-2.1.15.el5_8.6 installed
libxml2.x86_64 2.6.26-2.1.15.el5_8.6 installed
libxml2-devel.i386 2.6.26-2.1.15.el5_8.6 installed
libxml2-devel.x86_64 2.6.26-2.1.15.el5_8.6 installed
libxml2-python.x86_64 2.6.26-2.1.15.el5_8.6 installed
libxml2.i386 2.6.26-2.1.21.el5_9.2 updates
libxml2.x86_64 2.6.26-2.1.21.el5_9.2 updates
libxml2-devel.i386 2.6.26-2.1.21.el5_9.2 updates
libxml2-devel.x86_64 2.6.26-2.1.21.el5_9.2 updates
libxml2-python.x86_64 2.6.26-2.1.21.el5_9.2 updates
perl-libxml-perl.noarch 0.08-1.2.1 base
April 17th, 2013, 09:53 AM
-
Here is my output:
Code:
libxml2.i686 2.7.6-12.el6_4.1 @updates
libxml2-python.i686 2.7.6-12.el6_4.1 @updates
perl-libxml-perl.noarch 0.08-10.el6 @anaconda-CentOS-201112130233.i386/6.2
libxml++.i686 2.30.0-1.el6 epel
libxml++-devel.i686 2.30.0-1.el6 epel
libxml2-devel.i686 2.7.6-12.el6_4.1 updates
libxml2-static.i686 2.7.6-12.el6_4.1 updates
pentaho-libxml.i686 1.0.0-2.OOo31.1.el6 base
pentaho-libxml-javadoc.noarch 1.0.0-2.OOo31.1.el6 base
There are 10 kinds of people in the world. Those that understand binary and those that don't.
April 17th, 2013, 10:02 AM
-
If I'm reading this right, the package needs 2.7.6-8.el6_3.4 but I have 2.7.6-12.el6_4.1. Which means the needed lib is a back level version?
There are 10 kinds of people in the world. Those that understand binary and those that don't.
April 17th, 2013, 10:09 AM
-
Normally they are backwards compatible.
I'd start by installing the xml updates (via yum) and then try to build the module.
April 17th, 2013, 10:12 AM
-
Thanks but yum says all the packages are up to date, nothing to do.
There are 10 kinds of people in the world. Those that understand binary and those that don't.
April 17th, 2013, 10:15 AM
-
That's odd since the output of your yum list indicates that there are updates available.
April 17th, 2013, 10:32 AM
-
I'm running an update on everything now. I'll see what happens then.
There are 10 kinds of people in the world. Those that understand binary and those that don't.
April 17th, 2013, 10:50 AM
-
Make sure you're pointing to the correct yum repositories ...
--Ax
without exception, there is no rule ...
Handmade Irish Jewellery
Targeted Advertising Cookie Optout (TACO) extension for Firefox
The great thing about Object Oriented code is that it can make small, simple problems look like large, complex ones


09 F9 11 02
9D 74 E3 5B
D8 41 56 C5
63 56 88 C0
Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems. -- Jamie Zawinski
Deta
vil - the devil is in the detail, allegedly, and I use the term advisedly, allegedly ... oh, no, wait I did ...
BIT COINS ANYONE
April 17th, 2013, 11:19 AM
-
I'm using the CentOS default base repository: mirror.cogentco.com. Update is complete and rebooted just to be sure. No joy. Same errors.
There are 10 kinds of people in the world. Those that understand binary and those that don't.
April 17th, 2013, 11:30 AM
-
Got it! Uninstalling and reinstalling libxml2-dev did it.
There are 10 kinds of people in the world. Those that understand binary and those that don't.