Michael S. Fischer
michael at dynamine.net
Fri Dec 12 12:16:15 EST 2003
The default Makefile that configure creates is not quite right on OS X. Assuming you've installed Fink and the python22 package (which is an implicit prerequisite for mod_python on OS X), you'll need to run configure like so: env LDFLAGS="-L/sw/lib/python2.2/config -lpython2.2" ./configure Also note that even though you've already told mod_python the path to python, you'll need to tell it again by prepending /sw/bin to the PATH before executing Apache 2.0. --Michael Kevin Ballard wrote: > I'm running Mac OS X 10.3 with Apache 2 installed (via the Complete > Apache 2 installer package) and I'm trying to install mod_python (latest > from CVS). I ./configure and make and make install it fine, but when I > add the LoadModule line to my httpd.conf file and do a Check Syntax I > get the following error: > > Syntax error on line 1099 of /Library/Apache2/conf/httpd.conf: > Cannot load /Library/Apache2/modules/mod_python.so into server: dyld: > /Library/Apache2/bin/httpd Undefined symbols: > _PyExc_AttributeError > _PyExc_IOError > _PyExc_IndexError > _PyExc_KeyError > _PyExc_RuntimeError > _PyExc_StopIteration > _PyExc_TypeError > _PyExc_ValueError > _PyInt_Type > _PyList_Type > _PyObject_GenericGetAttr > _PyObject_GenericSetAttr > _PyString_Type > _PyType_Type > _Py_OptimizeFlag > __Py_NoneStruct > __Py_NotImplementedStruct > > line 1099 is my LoadModule for mod_python. Why am I getting this error > and how can I fix it? >
|