I had the same issue as mentioned here:
although my mod_wsgi.so isnt compiling.
mike
Hmmm, so you gave up on trying to solve same problem with mod_python
and thought you would try mod_wsgi instead. :-)
What do you get after having done the initial 'make' when you run:
$ ls -las .libs/
In other words, what make output is in the '.libs' subdirectory of the
mod_wsgi source code.
One would expect with Apache 2.X to see something like:
total 904
0 drwxr-xr-x 7 grahamd staff 238 21 Apr 21:13 .
0 drwxr-xr-x 20 grahamd staff 680 21 Apr 21:13 ..
312 -rw-r--r-- 1 grahamd staff 159720 21 Apr 21:13 mod_wsgi.a
8 lrwxr-xr-x 1 grahamd staff 14 21 Apr 21:13 mod_wsgi.la ->
../mod_wsgi.la
8 -rw-r--r-- 1 grahamd staff 801 21 Apr 21:13 mod_wsgi.lai
312 -rw-r--r-- 1 grahamd staff 159476 21 Apr 21:13 mod_wsgi.o
264 -rwxr-xr-x 1 grahamd staff 133048 21 Apr 21:13 mod_wsgi.so
If the .so file is in there, copy it by hand to Apache modules
directory instead of using 'make install'.
As suggested on mod_python list, there would appear to be something
amiss with your libtool installation, or alternatively with the 'apxs'
script provided with your version of Apache.
Since mod_wsgi needs only the one file installed, it is safe to just
copy it into place.
Graham
Graham Dumpleton wrote:
>
> Hmmm, so you gave up on trying to solve same problem with mod_python
> and thought you would try mod_wsgi instead. :-)
Oh man, it has been one of those days where nothing will work.
> What do you get after having done the initial 'make' when you run:
>
> $ ls -las .libs/
284 -rw-rw-r-- 1 mesh mesh 284854 Apr 26 00:29 mod_wsgi.a
0 lrwxrwxrwx 1 mesh mesh 14 Apr 26 00:29 mod_wsgi.la ->
../mod_wsgi.la
4 -rw-rw-r-- 1 mesh mesh 828 Apr 26 00:29 mod_wsgi.lai
notice no mod_wsgi.so
> As suggested on mod_python list, there would appear to be something
> amiss with your libtool installation, or alternatively with the 'apxs'
> script provided with your version of Apache.
Yes. I was starting to suspect that, and after your email, finally
figured it out.
I removed the libtool in the apache/build dir, and added a simlink to
the version I already had on my system, and was able to finally build
and compile mod_wsgi.a (and mod_python.so!).
For future reference, the version that worked for me was:
(libtool 1.2627 2008/04/01 23:32:01) 2.2.2
The version included with Apache 2.2.8 wouldnt work for me.
Man, what a day. Thanks for the help. Now I need to figure out which one
I want to run.
mike
If you have no need to be writing custom Python code to hook into
internals of Apache and only want to run a Python web
framework/application which supports WSGI, there is no real point
using mod_python these days. The mod_wsgi package performs better,
uses less memory and also has daemon mode which allows for process
separation between applications and allows applications to run as
different users. Anyway, that is my sales pitch. :-)
Graham
I need to check on the php mysql issue mentioned here first:
http://code.google.com/p/modwsgi/wiki/ApplicationIssues
Thanks for all of your help...
mike
Graham Dumpleton wrote:
> 2008/4/26 Mike Chambers <mikech...@gmail.com>: