Pagina 1 di 1

problema ./configure[Risolto]

Inviato: ven 6 lug 2007, 14:58
da Vito
allora ho un megaproblema.....quando dò ./configure per prepararmi a compilare un qualsiasi programma,il tutto mi si ferma sempre allo stesso punto...potete aiutarmi ?

Codice: Seleziona tutto

[vito@Vito:msn]$ ./configure
checking for prefix by checking for wish... /usr/bin/wish
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking tcl build dir... locate: fatal error: Could not find user database '/var/lib/slocate/slocate.db':  No such file or directory
using tcl library in /usr/lib
checking tk build dir... using tk library in /usr/lib
checking for main in -lstdc++... yes
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
configure: error: C preprocessor "/lib/cpp" fails sanity check
aiutatemi!!!!non cso proprio come risolvere!

Inviato: ven 6 lug 2007, 15:03
da dapuzz
reinstalla compilatore e header del kernel.

PS: dai pure un locate -u per costruire il database iniziale di slocate.

Inviato: ven 6 lug 2007, 15:06
da Vito
dapuzz ha scritto:reinstalla compilatore e header del kernel.

PS: dai pure un locate -u per costruire il database iniziale di slocate.
ok....ma per reinstallare gli header del kernel come faccio? io stò usando un kernel compilato da me dai sorgenti...grazie per la risposta!

Inviato: ven 6 lug 2007, 15:09
da dapuzz
gli headers sono riferiti al kernel con cui è stato compilato il compilatore, non al kernel che usi. Installa semplicemente il pacchetto kernel_headers. Mi pare che dovrebbe andare, al limite leggi l'errore completo nel config.log, può darsi che il problema sia un altro :)

Inviato: ven 6 lug 2007, 15:35
da Vito
ok tutto ok risolto erano gli header!!!grazie di tutto ancora!