[epiar-devel] [configure error]: Is xml2-config in path?
Christopher Thielen
chris at epiar.net
Thu Aug 19 11:43:27 PDT 2010
A quick primer on the GNU autotools system. One writes the
configure.in file which is used to generate the configure script
(generated by one of the 4-5 simple commands in autogen.sh).
If you can confirm /usr/bin/xml2-config is working, then you've got some
kind of interesting problem ...
You'll notice in configure.in there's something about libxml2, probably
a single line that says AC_MACRO(LIBXML2) or something similar. What
this does is reference a GNU autotools "macro" that was installed by
libxml2. Various Linux libraries install these macros so developers like
us can call them in our configure scripts -- essentially letting the
authors of libxml2 or whatever library write their own installation
checks so we don't have to (and they should be the ones to write it
anyway!).
First, check that you have a libxml2-dev or something similar installed.
Maybe you're missing the dev package (not likely since xml2-config is
there but check anyway). Rather than that, you can 'brute force' the
libxml2 config by deleting the macro line in configure.in and taking the
output of:
xml2-config --cflags
and
xml2-config --libs
and manually inserting them into the CFLAGS and LIBS variables in
configure.in.
I know that's a dirty solution and I'm throwing you ruthlessly into the
world of GNU autotools but once you're used to it, it's a very handy
tool, especially given it's wide usage in the Linux/FLOSS world.
-topher
On 8/18/10 8:29 PM, douglas.quade at yahoo.es wrote:
> Hello,
>
> I am trying to install Epiar under Ubuntu 10.04.
>
> ./autogen.sh is Ok but ./configure shows me this error:
>
> Cannot find XML2: is xml2-config in path?
>
> xml2-config is installed (/usr/bin/xml2-config)
>
> Kind regards,
>
> Sergio
>
>
> _______________________________________________
> epiar-devel mailing list
> epiar-devel at epiar.net
> http://epiar.net/mailman/listinfo/epiar-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://epiar.net/pipermail/epiar-devel/attachments/20100819/e587f5cd/attachment.html
More information about the epiar-devel
mailing list