Installation issues on Ubuntu server Hardy Heron

36 views
Skip to first unread message

Jason

unread,
Jul 18, 2008, 5:10:01 PM7/18/08
to modwsgi
Hey all--

I've got a pretty much fresh-out-the-box Ubuntu Hardy Heron server
install, on which I'm trying to put mod_wsgi 2.1. After running ./
configure a few times & eventually installing all the prerequisites
(mainly apache2-threaded-dev) so configure's (apparently) happy, when
I run "make" I get the longest list of errors I've ever seen; starts
thusly:

/usr/bin/apxs2 -c -I/usr/include/python2.5 -DNDEBUG mod_wsgi.c -L/
usr/lib/python2.5/config -lpython2.5 -lpthread -ldl -lutil
/usr/share/apr-1.0/build/libtool --silent --mode=compile --tag=disable-
static i486-linux-gnu-gcc -prefer-pic -DLINUX=2 -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/
include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -
pthread -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/
include/apr-1.0 -I/usr/include/postgresql -I/usr/include/python2.5 -
DNDEBUG -c -o mod_wsgi.lo mod_wsgi.c && touch mod_wsgi.slo
mod_wsgi.c:113:20: error: Python.h: No such file or directory
mod_wsgi.c:114:21: error: compile.h: No such file or directory
mod_wsgi.c:115:18: error: node.h: No such file or directory
mod_wsgi.c:116:20: error: osdefs.h: No such file or directory
mod_wsgi.c:119:2: error: #error Sorry, mod_wsgi requires at least
Python 2.3.0.
mod_wsgi.c:123:2: error: #error Sorry, mod_wsgi requires that Python
supporting thread.
mod_wsgi.c:140: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'Auth_Type'

...any ideas how I'm screwing this up? Or, alternately, if anyone can
point me to repository which has at least mod_wsgi 2.0 available
(mod_wsgi 1.3 is the most recent I can get in apt, even w/backports
enabled-- do I have to add "unstable" somewhere in my sources.list?),
that would probably do me fine.

Many many thanks!

Carl Nobile

unread,
Jul 18, 2008, 5:24:45 PM7/18/08
to mod...@googlegroups.com
It looks like, for one, you don't have the Python development packages installed on your machine. I'm a little surprised it's complaining about threaded python, most Unbutu installs I've done have that compiled into Python. So I'm think as your first step just install the python dev package.

-Carl

Jason

unread,
Jul 18, 2008, 5:39:01 PM7/18/08
to modwsgi
Eureka! Thing is, I've been through this exact issue before-- I knew
it was something like that. Thanks very much Carl!

On Jul 18, 2:24 pm, "Carl Nobile" <carl.nob...@gmail.com> wrote:
> It looks like, for one, you don't have the Python development packages
> installed on your machine. I'm a little surprised it's complaining about
> threaded python, most Unbutu installs I've done have that compiled into
> Python. So I'm think as your first step just install the python dev package.
>
> -Carl
>
Reply all
Reply to author
Forward
0 new messages