When trying to compile modwsgi on Mavericks (OS X 10.9) I get the following error:
$ make
/usr/sbin/apxs -c -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -DENABLE_DTRACE -DMACOSX -DNDEBUG -DNDEBUG -DENABLE_DTRACE -Wc,-g -Wc,-O2 -Wc,'-arch x86_64' mod_wsgi.c wsgi_apache.c wsgi_convert.c wsgi_validate.c -Wl,-F/System/Library/Frameworks -framework Python -u _PyMac_Error /System/Library/Frameworks/ -arch x86_64 -ldl -framework CoreFoundation
/usr/share/apr-1/build-1/libtool --silent --mode=compile /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.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 -g -O2 -arch x86_64 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -DENABLE_DTRACE -DMACOSX -DNDEBUG -DNDEBUG -DENABLE_DTRACE -c -o mod_wsgi.lo mod_wsgi.c && touch mod_wsgi.slo
env: /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain/usr/bin/cc: No such file or directory
apxs:Error: Command failed with rc=65536
.
make: * [mod_wsgi.la] Error 1
Comment #1
Posted on Nov 25, 2013 by Quick RhinoApple in MacOS X 10.8 and 10.9 breaks the ability to compile Apache modules.
Try going to:
/Applications/Xcode.app/Contents/Developer/Toolchains/
and do:
ln -s XcodeDefault.xctoolchain OSX10.9.xctoolchain
There has been a suggestion that they have broken something related to /usr/include in Mac OS X 10.9, but the description of the fix didn't seem right so am not sure I believe that one.
Try the above first.
It will need to be fixed every time that Xcode is update.
Comment #2
Posted on Nov 25, 2013 by Massive ElephantThanks for the quick reply, Graham.
I followed your instructions and created this symbolic link:
$ sudo ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/ /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain
Afterwards, make terminated without errors. However, it did end with a repeated warning:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: .libs/mod_wsgi.a(wsgi_apache.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: .libs/mod_wsgi.a(wsgi_apache.o) has no symbols
Is this important or can I just ignore this message?
Comment #3
Posted on Nov 25, 2013 by Quick RhinoThose warnings can be ignored.
Comment #4
Posted on Jun 30, 2014 by Happy KangarooIt worked! Thank you!
Comment #5
Posted on Jun 30, 2014 by Quick RhinoIf you use mod_wsgi 4.1+ you shouldn't need to mess with the symlink any more.
So if using an older mod_wsgi 3.X version, upgrade to the new version.
Comment #6
Posted on Aug 31, 2014 by Quick RhinoShouldn't be an issue with more recent mod_wsgi versions, closing.
Status: Fixed
Labels:
Type-Defect
Priority-Medium