Busqueda sobre Linux y software libre

Noticias sobre linux y software libre - Google 

Problemas al instalar apache 2.2.6 en Ubuntu

Pregunta

Estoy intentando instalar Apache en mi máquina que tiene Ubuntu
pero por alguna razón no completa la configuración.

$ ./configure --prefix=/usr/local/apache-2.2.6 --enable-so

Pregunta complementaria


¿por qué quieres compilar apache? ¿no basta el paquete?

Y seguimos con la pregunta

 Y me salió esto:

 checking for chosen layout... Apache
 checking for working mkdir -p... yes
 checking build system type... i686-pc-linux-gnulibc1
 checking host system type... i686-pc-linux-gnulibc1
 checking target system type... i686-pc-linux-gnulibc1


Comentario 


Si... es lo esperado.

Configuring Apache Portable Runtime library ...

 checking for APR... reconfig
 configuring package in srclib/apr now
 configure: WARNING: Unrecognized options: --enable-so

Comentario 



¿opción "--enable-so" desconocida?

 checking build system type... i686-pc-linux-gnulibc1
 checking host system type... i686-pc-linux-gnulibc1
 checking target system type... i686-pc-linux-gnulibc1
 Configuring APR library
 Platform: i686-pc-linux-gnulibc1
 checking for working mkdir -p... yes
 APR Version: 1.3.0
 checking for chosen layout... apr
 checking for gcc... gcc
 checking for C compiler default output file name...
 configure: error: C compiler cannot create executables
 See `config.log' for more details.
 configure failed for srclib/apr

Comentario 



Error en el compilador... ¿tienes compilador gcc? ¿icc? ¿u otro?


 Y para colmo:

 $make
 make: *** No se especificó ningún objetivo y no se encontró ningún
 makefile. Alto.

Respuesta

Si, tambien comportamiento esperado. ./configure se encarga de crear
el Makefile correspondiente deacuerdo a las opciones que le des....
si no hay Makefile entonces make no tiene nada que hacer ... ;-)

Bueno, el camino más rápido para tener las dependencias de compilación
de apache... es con apt:

$ sudo apt-get install build-essential # gcc y cosas elementales
para compilar
$ sudo apt-get build-dep apache2 # las dependencias de
compilación de apache2

Luego intenta compilar.

Pero deberías tener seguro que no tienes apache2 instalado, sino
podrías tener conflictos y/o confusiones de configuración/ejecutable/librerías.

Ads by CJ - Linux Foundation

Share This