Apache mod_wsgi安装错误

我正在运行CentOS 6.7,我正在尝试安装mod_wsgi( https://code.google.com/p/modwsgi/ )

通常我会这样做:

yum安装mod_wsgi

但是因为我需要确保它在Python 2.7下编译(而不是CentOS默认的Python 2.6版本),所以我决定下载repo( https://github.com/GrahamDumpleton/mod_wsgi/releases )并确保它已经configuration我的场景。

为了安装,我遵循了办公指南: https : //code.google.com/p/modwsgi/wiki/QuickInstallationGuide

唯一的区别是我改变了Python版本:

./configure --with-python=/usr/local/bin/python2.7 

以上回报:

 checking for apxs2... no checking for apxs... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for prctl... yes checking Apache version... ./configure: line 2765: apxs: command not found ./configure: line 2765: apxs: command not found ./configure: line 2766: apxs: command not found ./configure: line 2769: /: is a directory ./configure: line 2964: apxs: command not found configure: creating ./config.status config.status: creating Makefile 

运行make返回:

 apxs -c -I/usr/local/include/python2.7 -DNDEBUG -Wc,-g -Wc,-O2 src/server/mod_wsgi.c src/server/wsgi_*.c -L/usr/local/lib -L/usr/local/lib/python2.7/config -lpython2.7 -lpthread -ldl -lutil -lm /bin/sh: apxs: command not found make: *** [src/server/mod_wsgi.la] Error 127 

任何帮助,将不胜感激!

我错过了Apache开发工具:

yum安装httpd-devel