And what this all shows is that you have at some time either explicitly in indirectly installed an alternate Python installation, including modifying your PATH variable so it is found in preference to the system Python. Being same major/minor version this is bound to cause you issues at some point.
As for missing Apache header files, on my system with the latest XCode, the header files are in /usr/include/apache2, /usr/include/apr-1. There is just no way they could not be found and adding explicit include paths should not have been required. That they were found fine when using --with-python option with Apple Python shows something in that alternate Python version is screwing things up. I would suggest you modify your .bash_profile or whatever it is, that is setting your PATH so as to have: /Library/Frameworks/Python.framework/Versions/2.7/bin With that removed, just use the Apple supplied Python. Graham On 22 March 2013 19:23, Ignace Suy <[email protected]> wrote: > hello Graham, as per your request: > > ignace_air:mod_wsgi-3.4 ignace$ which python > /Library/Frameworks/Python.framework/Versions/2.7/bin/python > ignace_air:mod_wsgi-3.4 ignace$ python > Python 2.7.3 (v2.7.3:70274d53c1dd, Apr 9 2012, 20:52:43) > [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin > Type "help", "copyright", "credits" or "license" for more information. > >>> ^D > > ignace_air:mod_wsgi-3.4 ignace$ /usr/bin/python > Python 2.7.2 (default, Jun 20 2012, 16:23:33) > [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on > darwin > Type "help", "copyright", "credits" or "license" for more information. > >>> import sys > >>> print sys.prefix > /System/Library/Frameworks/Python.framework/Versions/2.7 > >>> print sys.version_info > sys.version_info(major=2, minor=7, micro=2, releaselevel='final', serial=0) > >>> ^D > > ignace_air:mod_wsgi-3.4 ignace$ make distclean > rm -rf .libs > rm -f mod_wsgi.o mod_wsgi.la mod_wsgi.lo mod_wsgi.slo mod_wsgi.loT > rm -f config.log config.status > rm -rf autom4te.cache > rm -f Makefile Makefile.in > > ignace_air:mod_wsgi-3.4 ignace$ ./configure --with-python=/usr/bin/python > checking for apxs2... no > checking for apxs... /usr/sbin/apxs > checking Apache version... 2.2.22 > configure: creating ./config.status > config.status: creating Makefile > > ignace_air:mod_wsgi-3.4 ignace$ cat Makefile > ====snip==== > APXS = /usr/sbin/apxs > PYTHON = /usr/bin/python > > DESTDIR = > LIBEXECDIR = /usr/libexec/apache2 > > CPPFLAGS = > -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 > -DENABLE_DTRACE -DMACOSX -DNDEBUG -DNDEBUG -DENABLE_DTRACE > CFLAGS = -Wc,'-arch x86_64' > LDFLAGS = -Wl,-F/System/Library/Frameworks -framework Python -u > _PyMac_Error /System/Library/Frameworks/ -arch x86_64 > LDLIBS = -ldl -framework CoreFoundation > =====end snip==== > > > conclusion: --with-python=/usr/bin/python MAKES a difference. > > regards, Ignace > > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/modwsgi?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/modwsgi?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
