libxml_domlib installation in linux : problems

ankit ankitrastogi82 at gmail.com
Wed Dec 28 09:05:14 EST 2005


 am installing libxml_domlib(1.2a) on linux but when I build it it
searches for  includes of libxml2 in folder
/usr/local/include/libxml2 but  libxml2 have includes under
/usr/include/libxml2. For this reason it gives me following error:
--
gcc -DNDEBUG -O2 -g -pipe -march=i386 -mcpu=i686 -D_GNU_SOURCE -fPIC
-fPIC -I. -I/usr/local/include/libxml2 -I/usr/include/python2.2 -c
libxml_domlib.c -o build/temp.linux-i686-2.2/libxml_domlib.o
libxml_domlib.c:32:30: libxml/xmlmemory.h: No such file or directory
libxml_domlib.c:33:27: libxml/parser.h: No such file or directory
--

In makefile I changed the places for libs and given the correct path
for includes of libxml2 under INCL_DIR instead of that its picking up
/usr/local/include/libxml2 and searches headers there . the
makefile(afer chages) I am using is following:

---
PYTHON_DIR=/usr/include/python2.2/
INCL_DIRS=-I/usr/include/libxml2/ \
          -I${PYTHON_DIR}
CFLAGS=-c -g ${INCL_DIRS} -Wall -fPIC
#LINKFLAGS=-shared -L/usr/local/lib/python2.1/config/ -lpython2.1 \
#       -L/usr/local/lib -lxml2 -lz -lm -lz
LINKFLAGS=-shared -L/usr/lib/python2.2/config/ -lpython2.2 \
        -L/usr/lib -lxml2 -lm
OBJS=libxml_domlib.o domlib_node.o domlib_doc.o \
        domlib_ns.o domlib_attrs.o
libxml_domlib.so: ${OBJS}
        gcc ${LINKFLAGS} ${OBJS} -o libxml_domlib.so
libxml_domlib.o: libxml_domlib.c domlib_node.h
        gcc ${CFLAGS} libxml_domlib.c -o libxml_domlib.o
domlib_node.o: domlib_node.c domlib_node.h
        gcc ${CFLAGS} domlib_node.c -o domlib_node.o
domlib_doc.o: domlib_doc.c domlib_doc.h
        gcc ${CFLAGS} domlib_doc.c -o domlib_doc.o
domlib_ns.o: domlib_ns.c domlib_ns.h
        gcc ${CFLAGS} domlib_ns.c -o domlib_ns.o
domlib_attrs.o: domlib_attrs.c domlib_attrs.h
        gcc ${CFLAGS} domlib_attrs.c -o domlib_attrs.o
clean:
        rm -f ${OBJS} libxml_domlib.so

---

How can I override this behaviour of inclusions of header?
and Also is there any version of libxml_domlib availaible for windows.
?

Can anyone help




More information about the Python-list mailing list