From: Titus B. <ti...@ca...> - 2003-02-10 21:55:58
|
-> First of all it's great to see that this project seems -> to be reviving. I'm really excited to have a go using -> PyWX to script aolserver. I have to admit I find Tcl a -> bit painful at times. ;) -> I'm trying to install the latest beta of PyWX on -> aolserver 3.4.2 with Python 2.2, on Mandrake 8.2 -> -> I'm follwing David Kuhlmans instructions. Configure -> seems to go OK but there are some differences in the -> Makefile that is created compared to the one that -> David describes. Instead a PYTHONDIR I have two -> undefined variables PYINCL and PYLIBS . -> -> I've tried a number of different settings for these -> two. -> -> For example i set: -> -> PYINCL = /usr/include/python2.2 -> PYLIBS = /usr/lib/python2.2 -> -> PYINCL is all the Python header files and PYLIBS is -> the Python install directory. -> -> This doesn't work. If I leave PYINCL and PYLIBS -> undefined then make complains that Python.h can't be -> found. -> -> Does anyone have any good ideas? So, these settings should be generated by 'configure', or failing that you can try using _generate_pyincl.py and _generate_pylibs.py. Of course, it sounds like those are failing... What you want in PYINCL is the whole C argument for including the Python header directory, e.g. -I /usr/include/python2.2 Similarly, for PYLIBS, you want something like -L /usr/local/lib/python2.2/config -lpython2.2 -ldl \ -lpthread -lutil -lm I tried to write something to pick them out of the Python config settings, but it sounds like it isn't working -- could you give me the output of running python on _generate_pyincl.py and _generate_pylibs.py? The HOWTO should be updated before the next release, I guess. tnx, --titus |