Linux - Gcc unix

 
Vista:

Gcc unix

Publicado por alexander (3 intervenciones) el 23/11/2006 17:48:16
Hola amigos tengo un problema trabajo en solaris, aunque es muy parecido a linux, es lo siguinte necesito compilar php para postgres, no tenia entorno de compilacion instale gcc, flex bison y varios paquetes, adicione el path y todo lo que recomiendan pero al configurar, esta es la ints que uso:

./configure --with-mysql --with-pgsql=/usr/local/pgsql --with-apxs2=/usr/local/apache2/bin/apxs --enable-sysvsem --enable-sysvshm

me sale lo siguiente:
loading cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for egrep... egrep
checking for a sed that does not truncate output... /usr/bin/sed
checking host system type... sparc-sun-solaris2.10
checking target system type... sparc-sun-solaris2.10
checking for gcc... gcc
checking whether the C compiler (gcc ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

el archivo config.log es el siguiente:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:2174: checking for Cygwin environment
configure:2190: gcc -c conftest.c 1>&5
./configure: gcc: not found
configure: failed program was:
#line 2179 "configure"
#include "confdefs.h"

int main() {

#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
configure:2207: checking for mingw32 environment
configure:2219: gcc -c conftest.c 1>&5
./configure: gcc: not found
configure: failed program was:
#line 2212 "configure"
#include "confdefs.h"

int main() {
return __MINGW32__;
; return 0; }
configure:2238: checking for egrep
configure:2253: checking for a sed that does not truncate output
configure:2390: checking host system type
configure:2411: checking target system type
configure:2510: checking for gcc
configure:2623: checking whether the C compiler (gcc ) works
configure:2639: gcc -o conftest conftest.c 1>&5
./configure: gcc: not found
configure: failed program was:

#line 2634 "configure"
#include "confdefs.h"

main(){return(0);}

Por favor ayudenme, e leido muchos mensajes en google y nada no lo resulve, les agradesco mucho.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:C compiler cannot create executables

Publicado por alexander (3 intervenciones) el 23/11/2006 23:07:34
ya lo resolbi era esto, en mi caso tenia las rutas necesarias en el path pero no estaban en el orden correcto, para poder compilar bueno este caso en particular es s.o. solaris, con gcc 3.3.2, el path se debe configurar asi:

PATH=_:/usr/local/bin:/usr/sbin:/usr/bin:/usr/ccs/bin
export PATH

y listo, santo remedio.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:C compiler cannot create executables

Publicado por edil (1 intervención) el 09/06/2008 20:50:46
Hola:

Podría explicar un poco mas sobre la solución de este problema. Por ejemplo, como llego a configurar el PATH?

Gracias,
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar