AIUTO!!! Problemi con installazione dei sorgenti! gcc non funziona! (kubuntu)

Installazione, configurazione e uso di programmi e strumenti.
Avatar utente
jungle
Prode Principiante
Messaggi: 25
Iscrizione: giovedì 8 dicembre 2005, 15:04
Località: Bari

AIUTO!!! Problemi con installazione dei sorgenti! gcc non funziona! (kubuntu)

Messaggio da jungle »

Ho problemi con l'installazione dei sorgenti  :-[

Mi succede con tutti i file tar.gz

mi dice che gcc non funziona. Da gestione Adept ho installato tutti i compilatori C possibili ed immaginabili.

quando eseguo ./configure ottengo quanto segue:

root@ubuntu:~/Ermanno/Software/babytrans-0.9.1# ./configure
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
root@ubuntu:~/Ermanno/Software/babytrans-0.9.1#   

-----------

il config.log invece scrive:

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

configure:582: checking for a BSD compatible install
configure:635: checking whether build environment is sane
configure:692: checking whether make sets ${MAKE}
configure:738: checking for working aclocal
configure:751: checking for working autoconf
configure:764: checking for working automake
configure:777: checking for working autoheader
configure:790: checking for working makeinfo
configure:804: checking whether to enable maintainer-specific portions of Makefiles
configure:830: checking for gcc
configure:943: checking whether the C compiler (gcc  ) works
configure:959: gcc -o conftest    conftest.c  1>&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure: failed program was:

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

main(){return(0);}


Ringrazio qualche Anima Pia che mi aiutera'.

Ciao a tutti...             
;)
Avatar utente
twilight
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 3849
Iscrizione: giovedì 17 febbraio 2005, 16:29
Località: L'Aquila
Contatti:

Re: AIUTO!!! Problemi con installazione dei sorgenti! gcc non funziona! (kubuntu

Messaggio da twilight »

devi installare build-essential.
Avatar utente
jungle
Prode Principiante
Messaggi: 25
Iscrizione: giovedì 8 dicembre 2005, 15:04
Località: Bari

Re: AIUTO!!! Problemi con installazione dei sorgenti! gcc non funziona! (kubuntu

Messaggio da jungle »

Si ho installato anche build-essential ed ho superato quello step. Adesso mi dice che non riesce a trovare Glib (>1.2) ed ho installato le Glib 2.x ma mi ridà sempre lo stesso errore. Come se non trovasse il path delle Glib. Ma se vado nella gestione pacchetti mi risultano installate.

Roba da uscire matti...

Grazie per la risposta Twilight... Sei il mio 113!  ;)
Avatar utente
twilight
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 3849
Iscrizione: giovedì 17 febbraio 2005, 16:29
Località: L'Aquila
Contatti:

Re: AIUTO!!! Problemi con installazione dei sorgenti! gcc non funziona! (kubuntu

Messaggio da twilight »

installa libglib2.0-dev .. sperando che non voglia esplicitamente le libglib1.2, ma mi sembra di no. ciao
Avatar utente
jungle
Prode Principiante
Messaggi: 25
Iscrizione: giovedì 8 dicembre 2005, 15:04
Località: Bari

Re: AIUTO!!! Problemi con installazione dei sorgenti! gcc non funziona! (kubuntu)

Messaggio da jungle »

Magnifico Lorenzo...

ti posto esattamente quello che mi scrive... anche dopo aver installato libglib2.0-dev:

root@ubuntu:~/Ermanno/Software/babytrans-0.9.1# ./configure
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for POSIXized ISC... no
checking for c++... c++
checking whether the C++ compiler (c++  ) works... yes
checking whether the C++ compiler (c++  ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking how to run the C++ preprocessor... c++ -E
checking if compiler use ISO headers... yes
checking if compiler know namespace keyword... yes
checking how compiler handle std namespace... as expected by a good C++ compiler :)
checking if C++ library include stringstream... yes
checking for glib-config... /usr/bin/glib-config
checking for GLIB - version >= 1.2.0... yes
checking for gtk-config... no
checking for GTK - version >= 1.2.0... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
configure: error: *** GTK+ >= 1.2.0 not installed - please install first ***

invece il file configure.log scrive...

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

configure:582: checking for a BSD compatible install
configure:635: checking whether build environment is sane
configure:692: checking whether make sets ${MAKE}
configure:738: checking for working aclocal
configure:751: checking for working autoconf
configure:764: checking for working automake
configure:777: checking for working autoheader
configure:790: checking for working makeinfo
configure:804: checking whether to enable maintainer-specific portions of Makefiles
configure:830: checking for gcc
configure:943: checking whether the C compiler (gcc  ) works
configure:959: gcc -o conftest    conftest.c  1>&5
configure:985: checking whether the C compiler (gcc  ) is a cross-compiler
configure:990: checking whether we are using GNU C
configure:999: gcc -E conftest.c
configure:1018: checking whether gcc accepts -g
configure:1050: checking for POSIXized ISC
configure:1083: checking for c++
configure:1115: checking whether the C++ compiler (c++  ) works
configure:1131: c++ -o conftest    conftest.C  1>&5
configure:1157: checking whether the C++ compiler (c++  ) is a cross-compiler
configure:1162: checking whether we are using GNU C++
configure:1171: c++ -E conftest.C
configure:1190: checking whether c++ accepts -g
configure:1223: checking how to run the C++ preprocessor
configure:1241: c++ -E  conftest.C >/dev/null 2>conftest.out
configure:1268: checking if compiler use ISO headers
configure:1277: c++ -E  conftest.C >/dev/null 2>conftest.out
configure:1297: checking if compiler know namespace keyword
configure:1306: c++ -c -g -O2  conftest.C 1>&5
configure:1318: checking how compiler handle std namespace
configure:1327: c++ -c -g -O2  conftest.C 1>&5
configure: In function 'int main()':
configure:1323: error: 'cout' was not declared in this scope
configure: failed program was:
#line 1320 "configure"
#include "confdefs.h"
#include
int main() {
cout
; return 0; }
configure:1345: c++ -c -g -O2  conftest.C 1>&5
configure:1395: checking if C++ library include stringstream
configure:1402: c++ -E  conftest.C >/dev/null 2>conftest.out
configure:1485: checking for glib-config
configure:1520: checking for GLIB - version >= 1.2.0
configure:1619: gcc -o conftest -g -O2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include  conftest.c -L/usr/lib -lglib  1>&5
configure:1751: checking for gtk-config
configure:1786: checking for GTK - version >= 1.2.0


Grazie per gli aiuti che mi stai dando :) Quando avevo la Mandrake mi capito' la stessa cosa poi installate le lib e gcc non ci fu alcun problema.
Avatar utente
pierba
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 14532
Iscrizione: sabato 26 febbraio 2005, 19:10

Re: AIUTO!!! Problemi con installazione dei sorgenti! gcc non funziona! (kubuntu

Messaggio da pierba »

Prova ad installare le libgtk2.0-dev

ciao
Pietro pagina personale - Avete domande sul forum? Leggendo le FAQ: potreste trovare la risposta.
La conoscenza deve essere collettiva, quindi, come da regolamento (Sez. II punto 15) i messaggi personali contententi richieste di assistenza tecnica verranno ignorati.
Avatar utente
twilight
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 3849
Iscrizione: giovedì 17 febbraio 2005, 16:29
Località: L'Aquila
Contatti:

Re: AIUTO!!! Problemi con installazione dei sorgenti! gcc non funziona! (kubuntu

Messaggio da twilight »

non vorrei che vuole esplicitamente le 1.2, tentar non nuoce :) installa libglib1.2-dev. ciao
Scrivi risposta

Ritorna a “Applicazioni”

Chi c’è in linea

Visualizzano questa sezione: Google [Bot], unlocked e 9 ospiti