Re: [xml] [textXPath.c] unable to find libxml.h

On Sun, Nov 07, 2010 at 09:52:13AM +0530, Santosh Mahale wrote:
Dear All,

I am just a couple of days old for libxml2 and i am finding difficulty to
compile one of the example code, testXPath.c.

I am trying to use libxml2 v 2.7.8 on my mac os x 10.5.8.
I downloaded libxml2 from and installed using
./configure, make, sudo make install sequence. post that i am trying to
compile the textXPath.c file from the examples folder using the following

gcc testXPath.c -l libxml2 -I /usr/local/include/libxml2

But it throws an error libxml.h: No such file or directory.
Can you please give me pointers from where i can download the required

  TestXPath .c is part of libxml2 own tests programs, it references
the internal include libxml.h and the code is not supposed to be
compiled outside of the tree without tweaking.


Daniel Veillard      | libxml Gnome XML XSLT toolkit
daniel veillard com  | Rpmfind RPM search engine | virtualization library

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]