Mod_wsgi from source + centos 4.8 compile issue

0 views
Skip to first unread message

Sam Walters

unread,
Nov 6, 2009, 2:13:28 AM11/6/09
to django...@googlegroups.com
Hi
I am trying to get mod_wsgi installed on a production server.
Apache: 1.3.37
Kernel: 2.6.17.13-vs2.0.2.1vs-1.00
Os: CentOS 4.8

Following instructions from:
http://code.google.com/p/modwsgi/wiki/QuickInstallationGuide

at the point with:
./configure --with-apxs=/usr/local/apache/bin/apxs
--with-python=/usr/local/bin/python2.5

then: 'make' produces the error:
-------------------------------------------------------------------
/usr/local/apache/bin/apxs -c -I/usr/local/include/python2.5 -DNDEBUG
mod_wsgi.c -L/usr/local/lib/python2.5/config -lpython2.5 -lpthread
-ldl -lutil
gcc -DLINUX=22 -DHAVE_SET_DUMPABLE -I/usr/include/gdbm
-DMOD_SSL=208128 -DUSE_HSREGEX -DEAPI -fpic -DSHARED_MODULE
-I/usr/local/apache/include -I/usr/local/include/python2.5 -DNDEBUG
-c mod_wsgi.c
In file included from /usr/local/include/python2.5/Python.h:8,
from mod_wsgi.c:113:
/usr/local/include/python2.5/pyconfig.h:942:1: warning:
"_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
from /usr/local/apache/include/ap_config.h:46,
from /usr/local/apache/include/httpd.h:30,
from mod_wsgi.c:34:
/usr/include/features.h:190:1: warning: this is the location of the
previous definition
gcc -shared -o mod_wsgi.so mod_wsgi.o
-L/usr/local/lib/python2.5/config -lpython2.5 -lpthread -ldl -lutil
-------------------------------------------------------------------
What sort of problem is occurring here?

I have installed centos 'Development Tools' as I have never had much
luck compiling anything on an RPM red hat style system (usually an
unusual compile error).
I cant find an apache source to download using yum (the compile may need it)

With debian the package is something like 'apache2-src' .

I can produce more verbose output of the packages already installed if needed.

cheers

Karen Tracey

unread,
Nov 6, 2009, 9:44:28 AM11/6/09
to django...@googlegroups.com
On Fri, Nov 6, 2009 at 2:13 AM, Sam Walters <mr.s...@gmail.com> wrote:

Hi
I am trying to get mod_wsgi installed on a production server.

The mod_wsgi group:

http://groups.google.com/group/modwsgi

would seem to be a more likely place to get help on this.

Karen

Graham Dumpleton

unread,
Nov 7, 2009, 6:26:30 AM11/7/09
to Django users
What error?

There is a warning, but as warnings go that can be ignored.

Graham
Reply all
Reply to author
Forward
0 new messages