Compilando Php 5 sobre Centos 4.4 x86_64

Imagen de zepolar

Forums: 

Hola a todos.
Será que me pueden echar una mano con este problema. Esoty tratando de compilar php 5 sobre un centos 4.4 arquitectura x86_64. Y me sale este error:

root@localhost [/usr/local/php-5.2.1]# ./configure
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

En realidad no se que estará pasando. En primera instancia pense que era el compilador gcc por el mensaje. Pero mire y si los tengo instalados.

compat-libgcc-296-2.96-132.7.2
gcc-java-3.4.6-3.1
gcc-3.4.6-3.1
compat-gcc-32-3.2.3-47.3
libgcc-3.4.6-3.1
gcc-gnat-3.4.6-3.1
gcc-objc-3.4.6-3.1
libgcc-3.4.6-3.1
gcc-c++-3.4.6-3.1
compat-gcc-32-c++-3.2.3-47.3
gcc-g77-3.4.6-3.1

Tienen alguna idea de lo que esta pasando. Cualquier sugerencia es bienvenida.

Es una horrible cochinada

Imagen de Epe

Es una horrible cochinada compilar algo fuera de rpms, pues no te quedará consistente el sistema, pasarás mucho trabajo actualizandolo o en el futuro cambiandote a una versión más moderna de centos.

Aquí tienes el php-5 para x86_64:
[url]http://mirror.centos.org/centos-4/4.5/centosplus/x86_64/RPMS/[/url]

Para centos4

Claro, si deseas recompilar algo en especial, te sugiero que uses el src.rpm para que obtengas un rpm con tus cambios, es super fácil.

Saludos
epe
--
EcuaLinux.com
Ecuador: +(593) 9 9246504, +(593) 2 3412402
USA: +1 305 675 1512, España: +34 917617884


Saludos
epe

EcuaLinux.com

+(593) 9 9924 6504

Servicios en Software Libre

Buen punto... Siguiendo tu

Imagen de zepolar

Buen punto... Siguiendo tu consejo trate de instalar el php a través de rpm's modificando el archivo spec a mi medida. Pero te comento que me sigue saliendo el mismo error.

checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

Alguna idea..