2009/5/20 chris <[email protected]>: > > Hi there, > > Trying to get modwsgi up and running. Need a self-compiled python for > full unicode support, including ucs4. Here is what I did: > > Compiled Python 2.5.4 with this configure: > > ./configure --enable-unicode=ucs4 --prefix=/usr/local/python-2.5.4 \ > --enable-framework=/usr/local/python-2.5.4/frameworks \ > --enable-universalsdk=/ MACOSX_DEPLOYMENT_TARGET=10.5 \ > --with-universal-archs=all > > then installed and configured modwsgi (the latest version for > download): > > ./configure --with-python=/usr/local/python-2.5.4/bin/python > > and edited the Makefile so that I get only i386 binaries and have a > pointer to the framework directory: > > CFLAGS = -Wc,'-arch i386' > LDFLAGS = -Wl -F/usr/local/python-2.5.4/frameworks -L/usr/local/ > python-2.5.4/frameworks/Python.framework/Versions/2.5/lib/python2.5/ > config -arch i386
Why did you edit the generated Makefile? There should have been no need for you to be making those changes. Please try without doing that and post the specific problem you were trying to address that may have occurred before that. On doing that, post the values of those flags from unmodified makefile, plus 'ls -las' of the directory: /usr/local/python-2.5.4/frameworks/Python.framework/Versions/2.5/lib/python2.5/config And the after a make, the output of running: otool -L .libs/mod_wsgi.so Graham > However, starting Apache (Mac 10.5.6, system provided), the system log > shows the following: > > [Wed May 20 17:00:19 2009] [warn] mod_wsgi: Compiled for Python/2.5.4. > [Wed May 20 17:00:19 2009] [warn] mod_wsgi: Runtime using Python/ > 2.5.1. > [Wed May 20 17:00:19 2009] [warn] mod_wsgi: Python module path '/ > System/Library/Frameworks/Python.framework/Versions/2.5/lib/ > python25.zip:/System/Library/Frameworks/Python.framework/Versions/2.5/ > lib/python2.5/:/System/Library/Frameworks/Python.framework/Versions/ > 2.5/lib/python2.5/plat-darwin:/System/Library/Frameworks/ > Python.framework/Versions/2.5/lib/python2.5/plat-mac:/System/Library/ > Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac/lib- > scriptpackages:/System/Library/Frameworks/Python.framework/Versions/ > 2.5/lib/python2.5/../../Extras/lib/python:/System/Library/Frameworks/ > Python.framework/Versions/2.5/lib/python2.5/lib-tk:/System/Library/ > Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload'. > [Wed May 20 17:00:19 2009] [notice] Digest: generating secret for > digest authentication ... > [Wed May 20 17:00:19 2009] [notice] Digest: done > [Wed May 20 17:00:19 2009] [notice] Apache/2.2.9 (Unix) mod_ssl/2.2.9 > OpenSSL/0.9.7l DAV/2 mod_wsgi/2.5 Python/2.5.1 configured -- resuming > normal operations > > So my question really is: How can I get the right python running? > > Any help appreciated, > > Chris > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
