Can't install LibXML

J

John Oliver

System is Red Hat ES 4 (Nahant Update 3)

cpan> install XML::LibXML
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Tue, 12 Dec 2006 12:24:39 GMT
Running install for module XML::LibXML
Running make for P/PA/PAJAS/XML-LibXML-1.62001.tar.gz
LWP not available

Trying with "/usr/bin/wget -O -" to get
http://www.perl.com/CPAN/authors/id/P/PA/PAJAS/XML-LibXML-1.62001.tar.gz
--10:06:04--
http://www.perl.com/CPAN/authors/id/P/PA/PAJAS/XML-LibXML-1.62001.tar.gz
=> `-'
Resolving www.perl.com... 208.201.239.36, 208.201.239.37
Connecting to www.perl.com|208.201.239.36|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 230,721 (225K) [application/x-tar]

100%[====================================>] 230,721 213.98K/s

10:06:05 (213.37 KB/s) - `-' saved [230721/230721]

CPAN: Digest::MD5 loaded ok

Trying with "/usr/bin/wget -O -" to get
http://www.perl.com/CPAN/authors/id/P/PA/PAJAS/CHECKSUMS
--10:06:05-- http://www.perl.com/CPAN/authors/id/P/PA/PAJAS/CHECKSUMS
=> `-'
Resolving www.perl.com... 208.201.239.37, 208.201.239.36
Connecting to www.perl.com|208.201.239.37|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8,704 (8.5K) [text/plain]

100%[====================================>] 8,704 --.--K/s

10:06:05 (107.04 KB/s) - `-' saved [8704/8704]

Checksum for
/root/.cpan/sources/authors/id/P/PA/PAJAS/XML-LibXML-1.62001.tar.gz ok
Scanning cache /root/.cpan/build for sizes
Deleting from cache: /root/.cpan/build/Digest-SHA-5.44 (13.5>10.0 MB)
Deleting from cache: /root/.cpan/build/Module-Signature-0.55 (13.1>10.0
MB)
Deleting from cache: /root/.cpan/build/File-Temp-0.17 (12.8>10.0 MB)
Deleting from cache: /root/.cpan/build/PathTools-3.24 (12.5>10.0 MB)
Deleting from cache: /root/.cpan/build/Data-Dumper-2.121 (11.8>10.0 MB)
Deleting from cache: /root/.cpan/build/Net-Telnet-3.03 (11.5>10.0 MB)
Deleting from cache: /root/.cpan/build/libnet-1.19 (11.1>10.0 MB)
Deleting from cache: /root/.cpan/build/TermReadKey-2.30 (10.6>10.0 MB)
Deleting from cache: /root/.cpan/build/Term-ReadLine-Perl-1.0302
(10.2>10.0 MB)
XML-LibXML-1.62/
XML-LibXML-1.62/t/
XML-LibXML-1.62/t/06elements.t
XML-LibXML-1.62/t/18docfree.t
XML-LibXML-1.62/t/24c14n.t
XML-LibXML-1.62/t/04node.t
XML-LibXML-1.62/t/90threads.t
XML-LibXML-1.62/t/31xpc_functions.t
XML-LibXML-1.62/t/30xpathcontext.t
XML-LibXML-1.62/t/20extras.t
XML-LibXML-1.62/t/08findnodes.t
XML-LibXML-1.62/t/05text.t
XML-LibXML-1.62/t/12html.t
XML-LibXML-1.62/t/25relaxng.t
XML-LibXML-1.62/t/02parse.t
XML-LibXML-1.62/t/28new_callbacks_multiple.t
XML-LibXML-1.62/t/19encoding.t
XML-LibXML-1.62/t/11memory.t
XML-LibXML-1.62/t/40reader.t
XML-LibXML-1.62/t/32xpc_variables.t
XML-LibXML-1.62/t/16docnodes.t
XML-LibXML-1.62/t/15nodelist.t
XML-LibXML-1.62/t/10ns.t
XML-LibXML-1.62/t/29id.t
XML-LibXML-1.62/t/03doc.t
XML-LibXML-1.62/t/27new_callbacks_simple.t
XML-LibXML-1.62/t/23rawfunctions.t
XML-LibXML-1.62/t/01basic.t
XML-LibXML-1.62/t/07dtd.t
XML-LibXML-1.62/t/13dtd.t
XML-LibXML-1.62/t/26schema.t
XML-LibXML-1.62/t/17callbacks.t
XML-LibXML-1.62/t/14sax.t
XML-LibXML-1.62/t/09xpath.t
XML-LibXML-1.62/lib/
XML-LibXML-1.62/lib/XML/
XML-LibXML-1.62/lib/XML/LibXML/
XML-LibXML-1.62/lib/XML/LibXML/SAX/
XML-LibXML-1.62/lib/XML/LibXML/SAX/Builder.pod
XML-LibXML-1.62/lib/XML/LibXML/SAX/Builder.pm
XML-LibXML-1.62/lib/XML/LibXML/SAX/Parser.pm
XML-LibXML-1.62/lib/XML/LibXML/SAX/Generator.pm
XML-LibXML-1.62/lib/XML/LibXML/Parser.pod
XML-LibXML-1.62/lib/XML/LibXML/Namespace.pod
XML-LibXML-1.62/lib/XML/LibXML/DOM.pod
XML-LibXML-1.62/lib/XML/LibXML/SAX.pod
XML-LibXML-1.62/lib/XML/LibXML/Text.pod
XML-LibXML-1.62/lib/XML/LibXML/XPathContext.pm
XML-LibXML-1.62/lib/XML/LibXML/PI.pod
XML-LibXML-1.62/lib/XML/LibXML/SAX.pm
XML-LibXML-1.62/lib/XML/LibXML/Reader.pod
XML-LibXML-1.62/lib/XML/LibXML/RelaxNG.pod
XML-LibXML-1.62/lib/XML/LibXML/Comment.pod
XML-LibXML-1.62/lib/XML/LibXML/InputCallback.pod
XML-LibXML-1.62/lib/XML/LibXML/Boolean.pm
XML-LibXML-1.62/lib/XML/LibXML/DocumentFragment.pod
XML-LibXML-1.62/lib/XML/LibXML/Dtd.pod
XML-LibXML-1.62/lib/XML/LibXML/Number.pm
XML-LibXML-1.62/lib/XML/LibXML/Reader.pm
XML-LibXML-1.62/lib/XML/LibXML/Node.pod
XML-LibXML-1.62/lib/XML/LibXML/XPathContext.pod
XML-LibXML-1.62/lib/XML/LibXML/Element.pod
XML-LibXML-1.62/lib/XML/LibXML/CDATASection.pod
XML-LibXML-1.62/lib/XML/LibXML/Literal.pm
XML-LibXML-1.62/lib/XML/LibXML/Document.pod
XML-LibXML-1.62/lib/XML/LibXML/Attr.pod
XML-LibXML-1.62/lib/XML/LibXML/Schema.pod
XML-LibXML-1.62/lib/XML/LibXML/NodeList.pm
XML-LibXML-1.62/docs/
XML-LibXML-1.62/docs/libxml.dbk
XML-LibXML-1.62/test/
XML-LibXML-1.62/test/relaxng/
XML-LibXML-1.62/test/relaxng/badschema.rng
XML-LibXML-1.62/test/relaxng/invaliddemo.xml
XML-LibXML-1.62/test/relaxng/demo.rng
XML-LibXML-1.62/test/relaxng/demo.xml
XML-LibXML-1.62/test/relaxng/demo2.rng
XML-LibXML-1.62/test/relaxng/demo3.rng
XML-LibXML-1.62/test/relaxng/schema.rng
XML-LibXML-1.62/test/schema/
XML-LibXML-1.62/test/schema/badschema.xsd
XML-LibXML-1.62/test/schema/invaliddemo.xml
XML-LibXML-1.62/test/schema/demo.xml
XML-LibXML-1.62/test/schema/schema.xsd
XML-LibXML-1.62/test/textReader/
XML-LibXML-1.62/test/textReader/countries.xml
XML-LibXML-1.62/xpath.c
XML-LibXML-1.62/xpath.h
XML-LibXML-1.62/LICENSE
XML-LibXML-1.62/dom.c
XML-LibXML-1.62/dom.h
XML-LibXML-1.62/README
XML-LibXML-1.62/Changes
XML-LibXML-1.62/LibXML.pm
XML-LibXML-1.62/LibXML.xs
XML-LibXML-1.62/example/
XML-LibXML-1.62/example/complex/
XML-LibXML-1.62/example/complex/dtd/
XML-LibXML-1.62/example/complex/dtd/f.dtd
XML-LibXML-1.62/example/complex/dtd/g.dtd
XML-LibXML-1.62/example/complex/complex2.xml
XML-LibXML-1.62/example/complex/complex.dtd
XML-LibXML-1.62/example/complex/complex.xml
XML-LibXML-1.62/example/xpath.pl
XML-LibXML-1.62/example/enc_latin2.html
XML-LibXML-1.62/example/article_internal_bad.xml
XML-LibXML-1.62/example/xmlns/
XML-LibXML-1.62/example/xmlns/badguy.xml
XML-LibXML-1.62/example/xmlns/goodguy.xml
XML-LibXML-1.62/example/ext_ent.dtd
XML-LibXML-1.62/example/catalog.xml
XML-LibXML-1.62/example/dtd.xml
XML-LibXML-1.62/example/article_internal.xml
XML-LibXML-1.62/example/article_bad.xml
XML-LibXML-1.62/example/dromeds.xml
XML-LibXML-1.62/example/test.dtd
XML-LibXML-1.62/example/test.xml
XML-LibXML-1.62/example/test.xhtml
XML-LibXML-1.62/example/article.xml
XML-LibXML-1.62/example/article_external_bad.xml
XML-LibXML-1.62/example/xmllibxmldocs.pl
XML-LibXML-1.62/example/ns.xml
XML-LibXML-1.62/example/cb_example.pl
XML-LibXML-1.62/example/bad.dtd
XML-LibXML-1.62/example/bad.xml
XML-LibXML-1.62/example/test2.xml
XML-LibXML-1.62/example/test3.xml
XML-LibXML-1.62/example/test.html
XML-LibXML-1.62/example/test4.xml
XML-LibXML-1.62/example/enc2_latin2.html
XML-LibXML-1.62/Makefile.PL
XML-LibXML-1.62/LibXML.pod
XML-LibXML-1.62/ppport.h
XML-LibXML-1.62/perl-libxml-mm.c
XML-LibXML-1.62/perl-libxml-mm.h
XML-LibXML-1.62/META.yml
XML-LibXML-1.62/perl-libxml-sax.c
XML-LibXML-1.62/perl-libxml-sax.h
XML-LibXML-1.62/typemap
XML-LibXML-1.62/xpathcontext.h
XML-LibXML-1.62/MANIFEST

CPAN.pm: Going to build P/PA/PAJAS/XML-LibXML-1.62001.tar.gz

enable native perl UTF8
running xml2-config...failed
The installed version of libxml2 not compatible with XML::LibXML.

You may continue at your own risk, but:

- don't expect XML::LibXML to build or work correctly!
- don't report errors!
- don't send patches!

Check the README file for more information on versions
that are tested with XML::LibXML

Running make test
Make had some problems, maybe interrupted? Won't test
Running make install
Make had some problems, maybe interrupted? Won't install
 
J

J. Gleixner

John Oliver wrote:
[...]
running xml2-config...failed
The installed version of libxml2 not compatible with XML::LibXML.

Ahhhh.. install or update the package for libxml2.
 
J

J.D. Baldwin

In the previous article said:
enable native perl UTF8
running xml2-config...failed
The installed version of libxml2 not compatible with XML::LibXML.

Go to ftp://ftp.gnome.org/pub/GNOME/sources/libxml2/2.6/ and download
libxml2-2.6.26.tar.gz.

gzcat libxml2-2.6.26.tar.gz | tar xf -
cd libxml2-2.6.26
./configure --prefix=/opt/whatever
make
make check
make install

Now go to your XML::LibXML directory and execute

perl Makefile.PL XMLPREFIX=/opt/whatever

I don't know how to do that kind of config thing in the CPAN shell,
but there's probably a way.
 
J

John Oliver

John Oliver wrote:
[...]
running xml2-config...failed
The installed version of libxml2 not compatible with XML::LibXML.

Ahhhh.. install or update the package for libxml2.

[oliver@sdgle01 ~]$ rpm -qa | grep libxml
libxml2-devel-2.6.16-6
libxml2-2.6.16-6
libxml2-2.6.16-6
libxml2-python-2.6.16-6
perl-libxml-enno-1.02-31
perl-libxml-perl-0.07-30
 
J

J.D. Baldwin

In the previous article said:
Last time I looked, RedHat used the GNOME desktop by default, and
libxml2 is a core GNOME library. So the library itself is very
likely already be installed, in which case all he needs is the
corresponding -dev package.

OK, not a big Red Hat user myself. I recently had libxml2 issues on a
Solaris 7 machine -- there was a libxml2 on the system, but I was
unwilling to mess with it and so simply installed a new one in my usual
GNU directory.
Anyway, the way to specify config arguments in the CPAN shell is the
"look" command. It will download and unpack the latest tarball, and
open a subshell in the build directory.

Thanks for the tip, I'll try that out.
 
J

J. Gleixner

Sherm said:
John Oliver said:
John Oliver wrote:
[...]
running xml2-config...failed
The installed version of libxml2 not compatible with XML::LibXML.
Ahhhh.. install or update the package for libxml2.
[oliver@sdgle01 ~]$ rpm -qa | grep libxml
libxml2-devel-2.6.16-6
libxml2-2.6.16-6
libxml2-2.6.16-6
libxml2-python-2.6.16-6
perl-libxml-enno-1.02-31
perl-libxml-perl-0.07-30

You've already installed XML::LibXML through RPM. Why are you trying to
install it again?

What happens when you do:

perl -MXML::LibXML -e 'print $XML::LibXML::VERSION, "\n"'

Also, what's the output of "xml2-config --version"? (might be in
/usr/local/bin) 2.6.16 looks like it's supported so either it's not
finding xml2-config (path issue) or that is reporting something other
than what 'make' is expecting.
 
J

John Oliver

Sherm said:
John Oliver said:
[...]
running xml2-config...failed
The installed version of libxml2 not compatible with XML::LibXML.
Ahhhh.. install or update the package for libxml2.
[oliver@sdgle01 ~]$ rpm -qa | grep libxml
libxml2-devel-2.6.16-6
libxml2-2.6.16-6
libxml2-2.6.16-6
libxml2-python-2.6.16-6
perl-libxml-enno-1.02-31
perl-libxml-perl-0.07-30

You've already installed XML::LibXML through RPM. Why are you trying to
install it again?

What happens when you do:

perl -MXML::LibXML -e 'print $XML::LibXML::VERSION, "\n"'

[root@sdgle01 ~]# perl -MXML::LibXML -e 'print $XML::LibXML::VERSION,
"\n"'
Can't locate XML/LibXML.pm in @INC (@INC contains:
/usr/local/lib/perl5/5.8.0/x86_64-linux /usr/local/lib/perl5/5.8.0
/usr/local/lib/perl5/site_perl/5.8.0/x86_64-linux
/usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl .).
BEGIN failed--compilation aborted.

That was the problem that started me down this path :)

[root@sdgle01 ~]# find / -name LibXML.pm
/usr/local/perl588/lib/site_perl/5.8.8/x86_64-linux/XML/LibXML.pm
/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/XML/LibXML.pm

Should I just copy that file to one of the directories it's looking in?
Also, what's the output of "xml2-config --version"? (might be in
/usr/local/bin) 2.6.16 looks like it's supported so either it's not
finding xml2-config (path issue) or that is reporting something other
than what 'make' is expecting.

[root@sdgle01 ~]# xml2-config --version
2.6.6
 
B

Ben Morrow

Quoth John Oliver said:
Sherm said:
[...]
running xml2-config...failed
The installed version of libxml2 not compatible with XML::LibXML.
Ahhhh.. install or update the package for libxml2.
[oliver@sdgle01 ~]$ rpm -qa | grep libxml
libxml2-devel-2.6.16-6
libxml2-2.6.16-6
libxml2-2.6.16-6
libxml2-python-2.6.16-6
perl-libxml-enno-1.02-31
perl-libxml-perl-0.07-30

You've already installed XML::LibXML through RPM. Why are you trying to
install it again?

What happens when you do:

perl -MXML::LibXML -e 'print $XML::LibXML::VERSION, "\n"'

[root@sdgle01 ~]# perl -MXML::LibXML -e 'print $XML::LibXML::VERSION,
"\n"'
Can't locate XML/LibXML.pm in @INC (@INC contains:
/usr/local/lib/perl5/5.8.0/x86_64-linux /usr/local/lib/perl5/5.8.0
/usr/local/lib/perl5/site_perl/5.8.0/x86_64-linux
/usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl .).
BEGIN failed--compilation aborted.

That was the problem that started me down this path :)

You appear to be using a non-system perl. That is, you appear to be
using a perl installed in /usr/local, rather than the perl Red Hat
installed in /usr/bin. What do you get from

which perl

? What do you get from

/usr/bin/perl -MXML::LibXML -le'print XML::LibXML->VERSION'

? Have you built perl yourself from source? Why do you have two
installations of perl?
[root@sdgle01 ~]# find / -name LibXML.pm
/usr/local/perl588/lib/site_perl/5.8.8/x86_64-linux/XML/LibXML.pm
/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/XML/LibXML.pm

Should I just copy that file to one of the directories it's looking in?

No, that definitely won't work. Where did those installations of
XML::LibXML come from? I would guess the one in /usr/lib64 is the one
rpm installed; what about the other? Do you have (or have you ever had)
a *third* copy of perl installed, that had /usr/local/perl588/lib in its
@INC?
Also, what's the output of "xml2-config --version"? (might be in
/usr/local/bin) 2.6.16 looks like it's supported so either it's not
finding xml2-config (path issue) or that is reporting something other
than what 'make' is expecting.

[root@sdgle01 ~]# xml2-config --version
2.6.6

Again, rpm reports it has libxml2-2.6.16 installed, but this is
reporting 2.6.6. 2.6.6 is not supported by XML::LibXML 1.62, though it
is supported by XML::LibXML 1.60, so you could try that if you want to
link with this version of libxml2. What do you get from

which xml2-config

? And what from

/usr/bin/xml2-config --version

? Have you installed libxml2 yourself separately from rpm? Again, why do
you (apparently) have two installations of libxml2?

Ben
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top