Created
July 30, 2012 04:35
-
-
Save markshust/3204646 to your computer and use it in GitHub Desktop.
install apache mod_wsgi on mountain lion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create symlink to solve missing directory on mountain lion | |
sudo ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain | |
# install mod with brew | |
brew install mod_wsgi | |
# add this line to httpd.conf and restart apache | |
LoadModule wsgi_module /usr/local/Cellar/mod_wsgi/3.3/libexec/mod_wsgi.so | |
sudo apachectl restart |
Please help me:
$ brew install mod_wsgi
==> Downloading http://modwsgi.googlecode.com/files/mod_wsgi-3.4.tar.gz
Already downloaded: /Library/Caches/Homebrew/mod_wsgi-3.4.tar.gz
==> ./configure --prefix=/usr/local/Cellar/mod_wsgi/3.4 --disable-framework
checking for python... /usr/bin/python
/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain/usr/bin/lipo: Can't map input file: / (Invalid argument)
cannot open /usr/build/config_vars.mk: No such file or directory at /usr/bin/apxs line 217.
configure: creating ./config.status
config.status: error: cannot find input file: Makefile.in
$ httpd -v
Server version: Apache/2.2.26 (Unix)
$ python --version
Python 2.7.6
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had to do the following before
brew install mod_wsgi
:brew tap homebrew/apache