2010/1/19 fhuddles <[email protected]>:
> Thanks: Run results and Apache error log messages look about the same.
> I do have a python2.4.load file in mods-available, but not enabled.
> Here are the make and otool results:
>
> [iota:~/work/temp/mod_wsgi-3.1] fhuddles% make
> /sw/bin/apxs2 -c -I/Library/Frameworks/Python.framework/Versions/2.6/
> include/python2.6 -DNDEBUG  -Wc,'-arch ppc' mod_wsgi.c -L/Library/
> Frameworks/Python.framework/Versions/2.6/lib -L/Library/Frameworks/
> Python.framework/Versions/2.6/lib/python2.6/config  -arch ppc -
> lpython2.6 -ldl
> /sw/share/apache2/build-1/libtool --silent --mode=compile gcc -prefer-
> pic -I/sw/src/fink.build/apache2-2.2.9-5/httpd-2.2.9/include -I/sw/lib/
> system-openssl/include -I/sw/lib/system-openssl/include/openssl -I/sw/
> include  -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -g -
> O2 -I/sw/include/apache2  -I/sw/include/apache2   -I/sw/include/
> apache2 -I/sw/include -arch ppc -I/Library/Frameworks/Python.framework/
> Versions/2.6/include/python2.6 -DNDEBUG  -c -o mod_wsgi.lo mod_wsgi.c
> && touch mod_wsgi.slo
> /sw/share/apache2/build-1/libtool --silent --mode=link gcc -o
> mod_wsgi.la  -rpath /sw/lib/apache2/modules -module -avoid-version
> mod_wsgi.lo -L/Library/Frameworks/Python.framework/Versions/2.6/lib -L/
> Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config -
> arch ppc -lpython2.6 -ldl
> ERROR: No debug map or DWARF data was found to link.
>
> [iota:~/work/temp/mod_wsgi-3.1] fhuddles% sudo make install
> /sw/bin/apxs2 -i -S LIBEXECDIR=/sw/lib/apache2/modules -n 'mod_wsgi'
> mod_wsgi.la
> /sw/share/apache2/build/instdso.sh SH_LIBTOOL='/sw/share/apache2/
> build-1/libtool' mod_wsgi.la /sw/lib/apache2/modules
> /sw/share/apache2/build-1/libtool --mode=install cp mod_wsgi.la /sw/
> lib/apache2/modules/
> cp .libs/mod_wsgi.so /sw/lib/apache2/modules/mod_wsgi.so
> cp .libs/mod_wsgi.lai /sw/lib/apache2/modules/mod_wsgi.la
> cp .libs/mod_wsgi.a /sw/lib/apache2/modules/mod_wsgi.a
> chmod 644 /sw/lib/apache2/modules/mod_wsgi.a
> ranlib /sw/lib/apache2/modules/mod_wsgi.a
> ----------------------------------------------------------------------
> Libraries have been installed in:
>   /sw/lib/apache2/modules
>
> If you ever happen to want to link against installed libraries
> in a given directory, LIBDIR, you must either use libtool, and
> specify the full pathname of the library, or use the `-LLIBDIR'
> flag during linking and do at least one of the following:
>   - add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
>     during execution
>
> See any operating system documentation about shared libraries for
> more information, such as the ld(1) and ld.so(8) manual pages.
> ----------------------------------------------------------------------
> chmod 755 /sw/lib/apache2/modules/mod_wsgi.so
>
>
> [iota:~/work/temp/mod_wsgi-3.1] fhuddles% otool -L .libs/mod_wsgi.so
> .libs/mod_wsgi.so:
>        /Library/Frameworks/Python.framework/Versions/2.6/Python
> (compatibility version 2.6.0, current version 2.6.0)
>        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0,
> current version 88.1.12)
>        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0,
> current version 1.0.0)
> [iota:~/work/temp/mod_wsgi-3.1] fhuddles%

Which sort of looks okay.

Suggest you do the following.

1. Use a simple WSGI hello world program and not your Django instance
to test. See:

  http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide

2. Change LogLevel directive in Apache configuration to be:

  LogLevel info

3. Verify that all files/directories under:

  /Library/Frameworks/Python.framework

are in fact readable/searchable by others and that they don't have
restrictive permissions which would prevent the user that Apache runs
as from reading them.

Graham

> On Jan 18, 5:14 am, Graham Dumpleton <[email protected]>
> wrote:
>> Try in mod_wsgi source code:
>>
>>   make distclean
>>
>>   ./configure --disable-framework --with-python=/some/path/bin/python2.6
>>
>>   make
>>
>>   sudo make install
>>
>> The --disable-framework option is the important bit.
>>
>> Post the output of the 'make' command and the output of running in
>> source directory after built:
>>
>>   otool -L .libs/mod_wsgi.so
>>
>> Graham
>>
>> 2010/1/18 fhuddles <[email protected]>:
>>
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/modwsgi?hl=en.
>
>
>
>
-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.


Reply via email to