Difference between revisions of "PyWrapper"
m |
m |
||
Line 11: | Line 11: | ||
http://jamesclarke.info/notes/libxml2 | http://jamesclarke.info/notes/libxml2 | ||
− | Some of the links at http://xmlsoft.org/XSLT/downloads.html -> downloads don't have the latest version of libxml2. I eventually found | + | Some of the links at http://xmlsoft.org/XSLT/downloads.html -> downloads don't have the latest version of libxml2 OR libxslt. I eventually found them here (using 2.6.9): |
ftp://ftp.gnome.org/pub/GNOME/sources/libxml2/2.6/ | ftp://ftp.gnome.org/pub/GNOME/sources/libxml2/2.6/ | ||
− | Used xslt 1.1.9. | + | |
+ | Used xslt 1.1.9. (failed) | ||
+ | |||
+ | |||
I followed James' instructions with this difference in the flag for both libxml2 and libxslt ./configure commands (this vs. the updated version of Python): | I followed James' instructions with this difference in the flag for both libxml2 and libxslt ./configure commands (this vs. the updated version of Python): | ||
Line 32: | Line 35: | ||
I'm using | I'm using | ||
python setup.py build_ext -i -I /usr/local/include/libxml2 | python setup.py build_ext -i -I /usr/local/include/libxml2 | ||
+ | |||
+ | Once libxml and libxslt are install try this to see what version is running | ||
+ | xsltproc --version |
Revision as of 12:57, 30 December 2006
Notes on getting pyWrapper to link to mx
The installation guide is here: http://trac.pywrapper.org/pywrapper/wiki/InstallationGuide
for OS X (10.3.9)
Steps 1 and 2 went off without a hitch after I installed the latest version of Python (2.4).
There may be some problems with the default versions of libxml and the xslt libraries. To update libxml2 and libxslt try looking here for hints:
http://jamesclarke.info/notes/libxml2
Some of the links at http://xmlsoft.org/XSLT/downloads.html -> downloads don't have the latest version of libxml2 OR libxslt. I eventually found them here (using 2.6.9):
ftp://ftp.gnome.org/pub/GNOME/sources/libxml2/2.6/
Used xslt 1.1.9. (failed)
I followed James' instructions with this difference in the flag for both libxml2 and libxslt ./configure commands (this vs. the updated version of Python):
./configure --with-python=/Library/Frameworks/Python.framework/Versions/2.4/
The other flags need to be included.
lxml still dying, the current error is:
In file included from src/lxml/etree.c:27: /usr/local/include/libxml2/libxml/xmlstring.h:29: error: redefinition of `xmlChar' <much more barfing>
I'm using
python setup.py build_ext -i -I /usr/local/include/libxml2
Once libxml and libxslt are install try this to see what version is running
xsltproc --version