Autor Tópico: Problemas do Compilador C  (Lida 1421 vezes)

Offline arthas_dk

  • Usuário Ubuntu
  • *
  • Mensagens: 7
    • Ver perfil
Problemas do Compilador C
« Online: 09 de MAR?O de 2007, 20:01 »
ola, gostaria de saber se alguem poderia me ajudar neste problema: toda a vez que tento instalar algum programa com ./ e sh retorna a mensagem no terminal "configure:2569: error: C compiler cannot create executables" e não consigo de forma alguma instalar o programa. Como teste para o config.log coloquei ai a saída do NTFS-3g mas outros programas também dão esse problema se alguem puder resolver agradeço.



configure:2491: $? = 0
configure:2493: gcc ­v
</dev/null >&5
Using builtin
specs.
Target: i486linuxgnu
Configured with: ../src/configure ­v
­enablelanguages=
c,c++,fortran,objc,objc++,
treelang ­prefix=/
usr ­enableshared
­withsystemzlib
­libexecdir=/
usr/lib ­withoutincludedgettext
­enablethreads=
posix ­enablenls
­programsuffix=
­4.1
­enable__
cxa_atexit ­enableclocale=
gnu ­enablelibstdcxxdebug
­enablempfr
­enablechecking=
release i486linuxgnu
Thread model: posix
gcc version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.113ubuntu5)
configure:2496: $? = 0
configure:2498: gcc ­V
</dev/null >&5
gcc: '­V'
option must have argument
configure:2501: $? = 1
configure:2524: checking for C compiler default output file name
configure:2527: gcc conftest.c >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2530: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "ntfs3g"
| #define PACKAGE_TARNAME "ntfs3g"
| #define PACKAGE_VERSION "0.20061212BETA"
| #define PACKAGE_STRING "ntfs3g
0.20061212BETA"
| #define PACKAGE_BUGREPORT "ntfs3gdevel@
lists.sf.net"
| #define PACKAGE "ntfs3g"
| #define VERSION "0.20061212BETA"
| #define _GNU_SOURCE 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2569: error: C compiler cannot create executables
See `config.log' for more details.

Offline Lamego

  • Usuário Ubuntu
  • *
  • Mensagens: 1.943
    • Ver perfil
Re: Problemas do Compilador C
« Resposta #1 Online: 10 de MAR?O de 2007, 17:16 »
Primeiro necessita instalar o compilador com:
Código: [Selecionar]
sudo apt-get install build-essential
João Luís Marques Pinto
Mais programs e jogos para o Ubuntu

Offline Gudar

  • Usuário Ubuntu
  • *
  • Mensagens: 39
    • Ver perfil
Re: Problemas do Compilador C
« Resposta #2 Online: 23 de MAR?O de 2007, 09:55 »
esse apt-get nõa procura instalações na net?
se for pra mim nem adianta pq eu também preciso desse compilador pra instalar o modem