[mod_python] mod_python redhat installation

Graham Dumpleton graham.dumpleton at gmail.com
Mon Dec 8 22:18:37 EST 2008


2008/12/9 Reuben A Christie <christie at knewco.com>:
> Hi,
> I have been trying to install mod_python on redhat using yum and it seems
> that there is no 3.3.1 version available as of now. when I try to compile it
> myself from source, i get big error stack when trying to do make.  these are
> the last few lines of the error stack. can somebody help please.
>
> /var/www/html/mod_python-3.3.1/src/include/mod_python.h:215: error:
> declaration for parameter 'apr_OFN_mp_release_interpreter_t' but no such
> parameter
> /var/www/html/mod_python-3.3.1/src/include/mod_python.h:210: error:
> declaration for parameter 'python_cleanup' but no such parameter
> /var/www/html/mod_python-3.3.1/src/include/mod_python.h:208: error:
> declaration for parameter 'py_handler' but no such parameter
> /var/www/html/mod_python-3.3.1/src/include/mod_python.h:193: error:
> declaration for parameter 'python_filter_ctx' but no such parameter
> /var/www/html/mod_python-3.3.1/src/include/mod_python.h:186: error:
> declaration for parameter 'py_req_config' but no such parameter
> /var/www/html/mod_python-3.3.1/src/include/mod_python.h:173: error:
> declaration for parameter 'cleanup_info' but no such parameter
> /var/www/html/mod_python-3.3.1/src/include/mod_python.h:163: error:
> declaration for parameter 'py_config' but no such parameter
> /var/www/html/mod_python-3.3.1/src/include/mod_python.h:151: error:
> declaration for parameter 'py_global_config' but no such parameter
> /var/www/html/mod_python-3.3.1/src/include/mod_python.h:143: error:
> declaration for parameter 'interpreterdata' but no such parameter
> /var/www/html/mod_python-3.3.1/src/include/finfoobject.h:35: error:
> declaration for parameter 'finfoobject' but no such parameter
> /var/www/html/mod_python-3.3.1/src/include/_pspmodule.h:23: error:
> declaration for parameter 'init_psp' but no such parameter
> /var/www/html/mod_python-3.3.1/src/include/filterobject.h:57: error:
> declaration for parameter 'filterobject' but no such parameter
> /var/www/html/mod_python-3.3.1/src/include/requestobject.h:53: error:
> declaration for parameter 'requestobject' but no such parameter
> /var/www/html/mod_python-3.3.1/src/include/connobject.h:47: error:
> declaration for parameter 'connobject' but no such parameter
> /var/www/html/mod_python-3.3.1/src/include/serverobject.h:36: error:
> declaration for parameter 'serverobject' but no such parameter
> /var/www/html/mod_python-3.3.1/src/include/tableobject.h:40: error:
> declaration for parameter 'tableobject' but no such parameter
> mod_python.c:3073: error: expected '{' at end of input
> apxs:Error: Command failed with rc=65536
> .
> make[1]: *** [mod_python.so] Error 1
> make[1]: Leaving directory `/var/www/html/mod_python-3.3.1/src'
> make: *** [do_dso] Error 2

Please post the lead set of errors for first file that fails including
the compilation line before it. This is of more interest as may show
header files not being able to be found or other things.

One thing to check is if you have appropriate Python 'dev' package installed.

Also, which version of Apache are you using?

Graham


More information about the Mod_python mailing list