Aiuto: compilare software

Installazione, configurazione e uso di programmi e strumenti.
domenan
Prode Principiante
Messaggi: 97
Iscrizione: lunedì 11 dicembre 2006, 18:24

Aiuto: compilare software

Messaggio da domenan »

Ho scaricato io sorgete di "AMC flight simulator" (esiste solo il sorgente) e ho deciso di provare a compilarlo. Naturalmente al primo tentativo mi da errore:

Al comando "./configure" mi da questo output.

Codice: Seleziona tutto

./configure
loading cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
/Desktop/acm-5.0-ico-20070905$ 
Questo è il contenuto del file "config.log"

Codice: Seleziona tutto

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

configure:563: checking for gcc
configure:640: checking whether the C compiler (gcc  ) works
configure:654: 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 650 "configure"
#include "confdefs.h"
main(){return(0);}

Cosa devo fare?

Vi ringrazio subito per gli aiuti.
Avatar utente
Rospo Zoppo
Rampante Reduce
Rampante Reduce
Messaggi: 5291
Iscrizione: martedì 16 gennaio 2007, 20:35

Re: Aiuto: compilare software

Messaggio da Rospo Zoppo »

prova con

Codice: Seleziona tutto

sudo apt-get install build-essential
domenan
Prode Principiante
Messaggi: 97
Iscrizione: lunedì 11 dicembre 2006, 18:24

Re: Aiuto: compilare software

Messaggio da domenan »

Grazie, l'ho fatto, ora non mi da più questo problema ma un altro:

Codice: Seleziona tutto

./configure
loading cache ./config.cache
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 xdr_free in -lnsl... yes
checking for a BSD compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for stdlib.h... yes
checking for malloc.h... yes
checking for unistd.h... yes
checking return type of signal handlers... void
checking for sigaction structure... yes
checking for M_PI casted to long double... no
checking for X... no
checking for XdbeSwapBuffers in -lXext... no
checking for XInitImage in -lX11... no
checking should the IEEE 1278 DIS protocol be used...... yes
checking if DIS debugging should be compiled-in... no
checking should DIS experimental request/grant control be used...... yes
checking checking for an ACM-compatible audio library ...
checking for AuCloseServer in -laudio... no
checking for bind in -lsocket... no
checking for main in -ldnet_stub... no
checking for main in -lbsd... no
checking for strdup... no
checking for rand... no
checking for random... no
configure: error: Hmm. Your system does not support either random() or rand().

Da quello che mi ricordo di C++ il comando "random()" serviva per generare un valore casule
Avatar utente
Rospo Zoppo
Rampante Reduce
Rampante Reduce
Messaggi: 5291
Iscrizione: martedì 16 gennaio 2007, 20:35

Re: Aiuto: compilare software

Messaggio da Rospo Zoppo »

Codice: Seleziona tutto

sudo apt-get install linux-headers-`uname -r`
domenan
Prode Principiante
Messaggi: 97
Iscrizione: lunedì 11 dicembre 2006, 18:24

Re: Aiuto: compilare software

Messaggio da domenan »

mi dice che è già installato alla versione più recente
Scrivi risposta

Ritorna a “Applicazioni”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 7 ospiti