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.<div><br></div><div>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.</div>
<div><br></div><div>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.</div>
<div><br></div><div>Now when I try to make dso, it successfully gets past finding its header files but now fails with:</div><div><br></div><div><div>[root@rhel6 mod_python-2.7.10]# make dso</div><div>make[1]: Entering directory `/tmp/mod_python-2.7.10/src'</div>
<div>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</div><div>In file included from /usr/include/python2.6/pyconfig.h:6,</div><div> from /usr/include/python2.6/Python.h:8,</div>
<div> from /tmp/mod_python-2.7.10/src/include/mod_python.h:77,</div><div> from mod_python.c:54:</div><div>/usr/include/python2.6/pyconfig-64.h:1031:1: warning: "_POSIX_C_SOURCE" redefined</div>
<div>In file included from /usr/include/sys/types.h:26,</div><div> from /usr/include/httpd/apr-x86_64.h:127,</div><div> from /usr/include/httpd/apr.h:19,</div><div> from /usr/include/httpd/ap_config.h:25,</div>
<div> from /usr/include/httpd/httpd.h:43,</div><div> from /tmp/mod_python-2.7.10/src/include/mod_python.h:63,</div><div> from mod_python.c:54:</div><div>/usr/include/features.h:213:1: warning: this is the location of the previous definition</div>
<div>In file included from mod_python.c:54:</div><div>/tmp/mod_python-2.7.10/src/include/mod_python.h:93: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token</div><div>/tmp/mod_python-2.7.10/src/include/mod_python.h:96: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âpython_moduleâ</div>
<div>In file included from /tmp/mod_python-2.7.10/src/include/mod_python.h:99,</div><div> from mod_python.c:54:</div><div>/tmp/mod_python-2.7.10/src/include/util.h:57: error: expected â;â, â,â or â)â before â*â token</div>
<div>In file included from /tmp/mod_python-2.7.10/src/include/mod_python.h:100,</div><div> from mod_python.c:54:</div></div><div><br></div><div>and a lot more. Can anyone help?</div><div><br></div><div>-mark</div>