- 下载mod_wsgi安装包 mod_wsgi-4.4.14.tar.gz
- tar -xvf mod_wsgi-4.4.14.tar.gz
- cd mod_wsgi-4.4.14
- python setup.py install
- 编译过程出错
mod_wsgi.c:34:10: fatal error: 'httpd.h' file not found
#include "httpd.h"
^
1 error generated.
sudo ln -s
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchainsudo ln -s
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
Developer/SDKs/MacOSX10.9.sdk/usr/include/* /usr/include/python setup.py install
- mod_wsgi-express start-server
- http://localhost:8000/
参考:
http://blog.csdn.net/djangor/article/details/23470955
http://www.xenabeast.com/solution-re-install-mod_wsgi-mac-upgrading-osx-mavericks-10-9/