Errors installing mod_python with apache
Mark Seger
mjseger at gmail.com
Tue Dec 27 08:32:38 EST 2011
I've tried this on both RHEL5.5 and RHEL 6.0, using the default apache that
comes with the environment and itself isn't configured with mod_python.
The first thing I noticed when mod_python wouldn't install was that apsx
wasn't installed either. After a lot of pain, I discovered httpd-devel
provided apsx and so installed that.
Back to mod_python. After running ./configure --with-apxs=/usr/sbin/apxs,
according to the README I need to run "make dso", but that promptly blows
up because it's looking for header files in /usr/include/httpd and itlooks
like the apxs files are in /usr/include/apr1, so I copied all its contents
to /usr/include/httpd.
Now when I try to make dso, it successfully gets past finding its header
files but now fails with:
[root at rhel6 mod_python-2.7.10]# make dso
make[1]: Entering directory `/tmp/mod_python-2.7.10/src'
gcc -I/tmp/mod_python-2.7.10/src/include -I/usr/include/httpd
-I/usr/include/python2.6 -c -o mod_python.o mod_python.c
In file included from /usr/include/python2.6/pyconfig.h:6,
from /usr/include/python2.6/Python.h:8,
from /tmp/mod_python-2.7.10/src/include/mod_python.h:77,
from mod_python.c:54:
/usr/include/python2.6/pyconfig-64.h:1031:1: warning: "_POSIX_C_SOURCE"
redefined
In file included from /usr/include/sys/types.h:26,
from /usr/include/httpd/apr-x86_64.h:127,
from /usr/include/httpd/apr.h:19,
from /usr/include/httpd/ap_config.h:25,
from /usr/include/httpd/httpd.h:43,
from /tmp/mod_python-2.7.10/src/include/mod_python.h:63,
from mod_python.c:54:
/usr/include/features.h:213:1: warning: this is the location of the
previous definition
In file included from mod_python.c:54:
/tmp/mod_python-2.7.10/src/include/mod_python.h:93: error: expected â=â,
â,â, â;â, âasmâ or â__attribute__â before â*â token
/tmp/mod_python-2.7.10/src/include/mod_python.h:96: error: expected â=â,
â,â, â;â, âasmâ or â__attribute__â before âpython_moduleâ
In file included from /tmp/mod_python-2.7.10/src/include/mod_python.h:99,
from mod_python.c:54:
/tmp/mod_python-2.7.10/src/include/util.h:57: error: expected â;â, â,â or
â)â before â*â token
In file included from /tmp/mod_python-2.7.10/src/include/mod_python.h:100,
from mod_python.c:54:
and a lot more. Can anyone help?
-mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20111227/32f41e58/attachment-0001.html>
More information about the Python-list
mailing list