Estou executando o CentOS 6.7, estou tentando instalar o mod_wsgi (https://code.google.com/p/modwsgi/)
Normalmente eu apenas faria:
yum instalar mod_wsgi
Mas como preciso ter certeza de que ele será compilado no Python 2.7 (em oposição à versão padrão do Python 2.6 do CentOS), decidi baixar o repositório (https://github.com/GrahamDumpleton/mod_wsgi/releases) e certifique-se de que esteja configurado para meu cenário.
Para a instalação segui o guia do office:https://code.google.com/p/modwsgi/wiki/QuickInstallationGuide
A única diferença é que mudei a versão do Python:
./configure --with-python=/usr/local/bin/python2.7
Os retornos acima:
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
Executando retornos:
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
Qualquer ajuda seria apreciada!
Responder1
Estava faltando as ferramentas de desenvolvimento do Apache:
yum instalar httpd-devel