Difference between revisions of "PyWrapper"
m |
m |
||
Line 1: | Line 1: | ||
− | |||
== Notes on getting pyWrapper to link to mx == | == 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) === | === for OS X (10.3.9) === | ||
− | There may be some problems with the default versions of libxml and the xslt libraries. To update libxml2 and libxslt try looking here: | + | Steps 1 and 2 went off without a hitch after I installed the latest version of [http://pythonmac.org/packages/py24-fat/index.html 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 | 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 it here (using 2.6.9): | ||
+ | |||
+ | ftp://ftp.gnome.org/pub/GNOME/sources/libxml2/2.6/ | ||
+ | |||
+ | Used xslt 1.1.9. | ||
+ | |||
+ | 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 |
Revision as of 03:53, 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. I eventually found it here (using 2.6.9):
ftp://ftp.gnome.org/pub/GNOME/sources/libxml2/2.6/
Used xslt 1.1.9.
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