[lxml-dev] BUG: Trunk fails on Leopard (OS X 10.5) for missing schematron.h
Hi all. I just tried compiling lxml trunk on Leopard and got: building 'lxml.etree' extension gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/usr/include/libxml2 -I/Users/paul/opt/include/python2.4 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.3-i386-2.4/src/lxml/lxml.etree.o -w src/lxml/lxml.etree.c:69:31: error: libxml/schematron.h: No such file or directory This also happens with the current cheeseshop egg (2.0alpha5). Here's the libxml2 version that ships with Leopard: $ xmllint --version xmllint: using libxml version 20616 compiled with: DTDValid FTP HTTP HTML C14N Catalog XPath XPointer XInclude Unicode Regexps Automata Schemas --Paul
Paul Everitt wrote:
build/temp.macosx-10.3-i386-2.4/src/lxml/lxml.etree.o -w src/lxml/lxml.etree.c:69:31: error: libxml/schematron.h: No such file or directory
This also happens with the current cheeseshop egg (2.0alpha5).
Here's the libxml2 version that ships with Leopard:
$ xmllint --version xmllint: using libxml version 20616 compiled with: DTDValid FTP HTTP HTML C14N Catalog XPath XPointer XInclude Unicode Regexps Automata Schemas
You are trying to build lxml 2.0 with libxml2 2.6.16. As the FAQ states, lxml 2.0 requires libxml2 2.6.20 or later. http://codespeak.net/lxml/dev/FAQ.html#which-version-of-libxml2-and-libxslt-... You can either try lxml 1.3.x or install a newer libxml2 version. Stefan
Total brainfart on my part. I had read somewhere else that libxml2 was updated, then looked at the version number *directly*, and *still* misread it. Sorry sorry sorry. --Paul Stefan Behnel wrote:
Paul Everitt wrote:
build/temp.macosx-10.3-i386-2.4/src/lxml/lxml.etree.o -w src/lxml/lxml.etree.c:69:31: error: libxml/schematron.h: No such file or directory
This also happens with the current cheeseshop egg (2.0alpha5).
Here's the libxml2 version that ships with Leopard:
$ xmllint --version xmllint: using libxml version 20616 compiled with: DTDValid FTP HTTP HTML C14N Catalog XPath XPointer XInclude Unicode Regexps Automata Schemas
You are trying to build lxml 2.0 with libxml2 2.6.16. As the FAQ states, lxml 2.0 requires libxml2 2.6.20 or later.
http://codespeak.net/lxml/dev/FAQ.html#which-version-of-libxml2-and-libxslt-...
You can either try lxml 1.3.x or install a newer libxml2 version.
Stefan
participants (2)
-
Paul Everitt
-
Stefan Behnel