Ошибка установки Apache mod_wsgi

Ошибка установки Apache mod_wsgi

Я использую CentOS 6.7, пытаюсь установить mod_wsgi (https://code.google.com/p/modwsgi/)

Обычно я просто делаю:

ням установить mod_wsgi

Но поскольку мне нужно убедиться, что он компилируется под Python 2.7 (а не под версию Python 2.6 по умолчанию в CentOS), я решил загрузить репозиторий (https://github.com/GrahamDumpleton/mod_wsgi/releases) и убедитесь, что он настроен для моего сценария.

Для установки я следовал офисному руководству: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

Любая помощь будет оценена по достоинству!

решение1

Мне не хватало инструментов разработки Apache:

yum установить httpd-devel

Связанный контент