Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Failed in installing XML::LibXML

Status
Not open for further replies.

whn

Programmer
Oct 14, 2007
265
US
I am having difficulties in installing XML::LibXML.

Below is my system:
Code:
[b]% cat /etc/issue[/b]
Ubuntu 14.04.2 LTS \n \l

[b]% perl -v[/b]

This is perl 5, version 18, subversion 2 (v5.18.2) built for x86_64-linux-gnu-thread-multi
(with 41 registered patches, see perl -V for more detail)

I have successfully ran the following cmd before my installation:

sudo apt-get install zlib1g-dev

The cmd I use to install:
Code:
[b]% sudo cpanm XML::LibXML[/b]
--> Working on XML::LibXML
Fetching [URL unfurl="true"]http://www.cpan.org/authors/id/S/SH/SHLOMIF/XML-LibXML-2.0118.tar.gz[/URL] ... OK
Configuring XML-LibXML-2.0118 ... N/A
! Configure failed for XML-LibXML-2.0118. See ~/.cpanm/work/1429645044.23964/build.log for details.

The contents of ~/.cpanm/work/1429645044.23964/build.log:
Code:
[b]% cat ~/.cpanm/work/1429645044.23964/build.log[/b]

cpanm (App::cpanminus) 1.7030 on perl 5.018002 built for x86_64-linux-gnu-thread-multi
Work directory is ~/.cpanm/work/1429645044.23964
You have make /usr/bin/make
You have LWP 6.05
You have /bin/tar: tar (GNU tar) 1.27.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <[URL unfurl="true"]http://gnu.org/licenses/gpl.html>.[/URL]
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
Searching XML::LibXML on cpanmetadb ...
--> Working on XML::LibXML
Fetching [URL unfurl="true"]http://www.cpan.org/authors/id/S/SH/SHLOMIF/XML-LibXML-2.0118.tar.gz[/URL]
-> OK
Unpacking XML-LibXML-2.0118.tar.gz
Entering XML-LibXML-2.0118
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.66)
Configuring XML-LibXML-2.0118
Running Makefile.PL
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
  [URL unfurl="true"]http://xmlsoft.org/[/URL]
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.
-> N/A
-> FAIL Configure failed for XML-LibXML-2.0118. See [b]~/.cpanm/work/1429645044.23964/build.log[/b] for details.

Thanks for the help.
 
I'd guess that libxml-2.x != libxml2.

Annihilannic
[small]tgmlify - code syntax highlighting for your tek-tips posts[/small]
 
I think Annihilannic is correct, I recently had a similar problem.
XML::LibXML is an interface for libxml2, so it needs to be installed on your system first.

see: [URL unfurl="true"]http://www.xmlsoft.org/[/url]

I just type "xmllint --version" to see if it's been installed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top