Estoy ejecutando CentOS 6.7, estoy intentando instalar mod_wsgi (https://code.google.com/p/modwsgi/)
Normalmente simplemente haría:
yum instalar mod_wsgi
Pero como necesito asegurarme de que se compila en Python 2.7 (a diferencia de la versión Python 2.6 predeterminada de CentOS), decidí descargar el repositorio (https://github.com/GrahamDumpleton/mod_wsgi/releases) y asegúrese de que esté configurado para mi escenario.
Para la instalación, seguí la guía de la oficina:https://code.google.com/p/modwsgi/wiki/QuickInstallationGuide
La única diferencia es que cambié la versión de Python:
./configure --with-python=/usr/local/bin/python2.7
Lo anterior devuelve:
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
Ejecutando hacer devoluciones:
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
¡Cualquier ayuda sería apreciada!
Respuesta1
Me faltaban las herramientas de desarrollo de Apache:
yum instalar httpd-devel