Closed GoogleCodeExporter closed 8 years ago
The README file in the source code says:
"""If using a Python binary package for a Linux system, also ensure that the
you have the corresponding 'dev' package installed for the Python package
you have installed. Without this package you will be missing the Python
header files and configuration files need to build mod_wsgi."""
The page at:
http://code.google.com/p/modwsgi/wiki/QuickInstallationGuide
says:
"""On Linux systems, if Python has been installed from a package repository,
you must have installed the
corresponding Python "dev" package as well."""
I can add a more in depth section to:
http://code.google.com/p/modwsgi/wiki/InstallationIssues
but adding a check in the 'configure' script is a bit more work. Simplest thing
can do is to change mod_wsgi.c
so additional error message comes out at compile time. Thus code would change
from:
#if !defined(PY_VERSION_HEX) || PY_VERSION_HEX <= 0x02030000
#error Sorry, mod_wsgi requires at least Python 2.3.0 for Python 2.X.
#endif
to:
#if !defined(PY_VERSION_HEX)
#error Sorry, Python developer package does not appear to be installed.
#endif
#if PY_VERSION_HEX <= 0x02030000
#error Sorry, mod_wsgi requires at least Python 2.3.0 for Python 2.X.
#endif
Could possibly do a similar thing for Apache. A common variable for both Apache
1.3 and 2.X appears to be
HTTPD_ROOT, so could use:
#if !defined(HTTPD_ROOT)
#error Sorry, Apache developer package does not appear to be installed.
#endif
Original comment by Graham.Dumpleton@gmail.com
on 16 Nov 2009 at 10:33
Added documentation to:
http://code.google.com/p/modwsgi/wiki/InstallationIssues
Changes to mod_wsgi source code will need to wait until after mod_wsgi 3.0
released and not making further
changes at this time.
Original comment by Graham.Dumpleton@gmail.com
on 16 Nov 2009 at 10:44
that looks great. that was the first page I went to, and that would've solved
it for me.
hope it helps others
Original comment by crucialf...@gmail.com
on 16 Nov 2009 at 11:01
Checks add in revision 1491 of trunk for mod_wsgi 3.1.
Original comment by Graham.Dumpleton@gmail.com
on 23 Nov 2009 at 10:43
3.1 was released a while back.
Original comment by Graham.Dumpleton@gmail.com
on 18 Dec 2009 at 10:29
Original issue reported on code.google.com by
crucialf...@gmail.com
on 16 Nov 2009 at 1:54