Do you actually have the required Xcode on the system?
If you do, where does it have 'cc' command installed?
On 24 June 2012 11:55, Gnarlodious <gnarl...@gmail.com> wrote:
> Oops, that was erroneous. Here is what really happens:
>
> apxs -q CC
> /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc
>
> Is that the cc compiler? How do I use it to build mod_wsgi?
>
> --
> You received this message because you are subscribed to the Google Groups
> "modwsgi" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/modwsgi/-/mEB40O4Q-fwJ.
>
> To post to this group, send email to mod...@googlegroups.com.
> To unsubscribe from this group, send email to
I had to go intoAnd set the path to the compiler. After that I get this error:
/usr/share/apr-1/build-1/libtool --silent --mode=compile /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/local/include -I/usr/include/apache2 -I/usr/include/apr-1 -I/usr/include/apr-1 -arch x86_64 -I/usr/local/python-3.1.3/frameworks/Python.framework/Versions/3.1/include/python3.1 -DNDEBUG -c -o mod_wsgi.lo mod_wsgi.c && touch mod_wsgi.slo
mod_wsgi.c:34:10: fatal error: 'httpd.h' file not found#include "httpd.h"^1 error generated.
apxs:Error: Command failed with rc=65536.make: *** [mod_wsgi.la] Error 1
apxs line 735 does say #include "httpd.h" I did find a file at/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/apache2/httpd.hMaybe that is what it wants?-- Gnarlie
#include "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/apache2/httpd.h"
I build and deployed the mod_wsgi module successfully on a macbook air osx 10.8.2, xcode 4.6.1 installed.I first had to symlink (as described also in another post:cd /Applications/Xcode.app/Contents/Developer/Toolchains/sudo ln -s XcodeDefault.xctoolchain OSX10.8.xctoolchainthen modify the generated Makefile with the following includes (should be a single line):CPPFLAGS =-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/apr-1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/apache2 -DNDEBUGThe module builds fine (some warnings),The sudo make install runs fine.After this the apache config can be done and the 'hello world' example works fine.Hope this helps other people trying to get it done.
--
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 modwsgi+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/modwsgi?hl=en.For more options, visit https://groups.google.com/groups/opt_out.
Hello Graham,
I spend some 10 hours into building the module, got it to work properly and was happy to share the info on that with others. Since you took real serious effort into my message, here is more info on my challenge, maybe this helps you too solve future frustrations on OSX.
in a nutshell:
unpack mod_wsgi 3.4
run ./configure (no issues)
the Makefile created states:
CPPFLAGS = -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -DNDEBUG
lets take a look:
ignace_air:bin ignace$ cd /Library/Frameworks/Python.framework/Versions/2.7/bin
ignace_air:bin 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.
>>>
there is also another 2.5, 2.6, 2.7 version of python on this system, lets take a look:
ignace_air:mod_wsgi-3.4 ignace$ cd /System/Library/Frameworks/Python.framework/Versions/2.7/bin
ignace_air:bin ignace$ ./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.
>>> ^D
I did not install any python. I assume they came with the OS and with Xcode. Cant trace that anymore. I cannot judge which one is 'the best'.
Basically: i did not choose consciously what python to use, ./configure took it.
You received this message because you are subscribed to a topic in the Google Groups "modwsgi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/modwsgi/fMCkwZnMMCo/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to modwsgi+u...@googlegroups.com.
regards, Ignace