[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: instalar gcc



Estranho, eu tive um problema parecido estes dias e não me lembro como resolvi, dê uma olhada no link simbólico do gcc se está apontando para o executável certo :

flavio@flaviocomputer:~$ type gcc
gcc is hashed (/usr/bin/gcc)
flavio@flaviocomputer:~$ ls -l /usr/bin/gcc
lrwxrwxrwx 1 root root 7 2004-01-12 23:44 /usr/bin/gcc -> gcc-3.3
flavio@flaviocomputer:~$ gcc --version
gcc (GCC) 3.3.3 20040125 (prerelease) (Debian)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Dependendo do programa que você está compilando pode ser que o script configure não deixe compilar dependendo da versão, sei lá.

Veja no meu sistema que atualização após atualização ele vai mantendo as versões antigas do gcc :

flavio@flaviocomputer:~$ ls -l /usr/bin/gcc*
lrwxrwxrwx 1 root root 7 2004-01-12 23:44 /usr/bin/gcc -> gcc-3.3 -rwxr-xr-x 1 root root 74088 2003-10-15 04:23 /usr/bin/gcc-2.95
-rwxr-xr-x    1 root     root        74056 2002-04-07 22:26 /usr/bin/gcc-3.0
-rwxr-xr-x    1 root     root        80716 2003-12-23 09:35 /usr/bin/gcc-3.2
-rwxr-xr-x    1 root     root        84780 2004-01-25 16:23 /usr/bin/gcc-3.3
lrwxrwxrwx 1 root root 10 2004-01-12 23:44 /usr/bin/gccbug -> gccbug-3.3 -rwxr-xr-x 1 root root 15647 2002-04-07 20:38 /usr/bin/gccbug-3.0 -rwxr-xr-x 1 root root 15886 2003-12-23 08:20 /usr/bin/gccbug-3.2 -rwxr-xr-x 1 root root 16008 2004-01-25 16:16 /usr/bin/gccbug-3.3
flavio@flaviocomputer:~$


No mais boa sorte

Flávio

LISTA NEXCOM1 wrote:
Eduardo,

   Já instalei o gcc, mais ele nao consegue
   gerar executaveis.

   Falei pra ele não beber em serviço, mais pelo visto não quer me
   ouvir.

   Segue abaixo relatório da amnésia do Sr. Gcc que o leva a
   estado vegetativo...

(dentro do diretório onde tenho o source do Sarg)

# ./configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc  -g) works... no
configure: error: installation or configuration problem: C compiler cannot
create executables.

Se alguém puder me fornecer uma "garrafada-energética" pra ele,
agradeço.

[]'s

André




Reply to: