Skip to content

Instantly share code, notes, and snippets.

@markshust
Created July 30, 2012 04:35
Show Gist options
  • Save markshust/3204646 to your computer and use it in GitHub Desktop.
Save markshust/3204646 to your computer and use it in GitHub Desktop.
install apache mod_wsgi on mountain lion
# 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
Copy link

ghost commented May 20, 2014

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