-
-
Save markshust/3204646 to your computer and use it in GitHub Desktop.
# 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 |
I had to do the following before brew install mod_wsgi
:
brew tap homebrew/apache
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
all I get is Error: No available forumla for mod_wsgi