Erreurs lors de l'install de gcc 4.2.4

zoya2385 -  
Zoya2385 Messages postés 14 Statut Membre -
Bonjour

Je travail sous ubunto 11.04 et j'ai la version gcc 4.5.2.

J'ai besoin d'installer gcc 4.2.4. j'ai telecharge le gcc-4.2.4.tar.bz2 et j'ai suivi ces etapes

tar -xvjpf gcc-4.2.4.tar.bz2
mkdir gcc-obj
cd gcc-obj
../gcc-4.2.4/configure
make
sudo make install

J'ai des erreurs quand j'excute la commande make

...
MULTILIB_CFLAGS="" T= crtbegin.o crtend.o crti.o crtn.o
make[3]: entrant dans le répertoire « /home/dell/Bureau/gcc-4.2.4/obj/gcc »
/home/dell/Bureau/gcc-4.2.4/obj/./gcc/xgcc -B/home/dell/Bureau/gcc-4.2.4/obj/./gcc/ -B/mips-elf/bin/ -B/mips-elf/lib/ -isystem /mips-elf/include -isystem /mips-elf/sys-include -O2 -O2 -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include -I../../gcc/../libdecnumber -I../libdecnumber -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -Dinhibit_libc -G 0 \
-c ../../gcc/crtstuff.c -DCRT_BEGIN \
-o crtbegin.o
exec: 2: -G: not found
make[3]: *** [crtbegin.o] Erreur 1
make[3]: quittant le répertoire « /home/dell/Bureau/gcc-4.2.4/obj/gcc »
make[2]: *** [extra] Erreur 2
make[2]: quittant le répertoire « /home/dell/Bureau/gcc-4.2.4/obj/gcc »
make[1]: *** [stmp-multilib] Erreur 2
make[1]: quittant le répertoire « /home/dell/Bureau/gcc-4.2.4/obj/gcc »
make: *** [all-gcc] Erreur 2

root@ubuntu:/home/dell/Bureau/gcc-4.2.4/obj#

Est ce que vous avez une idee sur ces erreurs ?

Merci pour votre aide.

11 réponses

  1. Franzux Messages postés 9705 Statut Contributeur 1 146
     
    Tu as installé les outils de compilation ?
    0
  2. Zoya2385 Messages postés 14 Statut Membre
     
    Pouvez vous me donner un exemple de ces outils ? est ce qu'il y a un outil a installer avant l'installation de gcc ?
    0
    1. Franzux Messages postés 9705 Statut Contributeur 1 146
       
      Le paquet build-essential par exemple...

      C'est ta première compilation ?
      0
  3. Zoya2385 Messages postés 14 Statut Membre
     
    Oui je suis debutantem c'est la premiere fois que j'essaie d'installer gcc.

    j'ai tape build-essential

    root@ubuntu:/home/dell/Bureau/gcc-4.2.4# build-essential
    build-essential : commande introuvable
    root@ubuntu:/home/dell/Bureau/gcc-4.2.4#

    c'est la raison pourlaquelle j'ai eu des problemes ?
    0
    1. Franzux Messages postés 9705 Statut Contributeur 1 146
       
      Installe le paquet :

      # aptitude install build-essential
      0
  4. Zoya2385 Messages postés 14 Statut Membre
     
    ca marche pas

    root@ubuntu:/usr/bin# aptitude install build-essential
    Aucun paquet ne va être installé, mis à jour ou enlevé.
    0 paquets mis à jour, 0 nouvellement installés, 0 à enlever et 257 non mis à jour.
    Il est nécessaire de télécharger 0 o d'archives. Après dépaquetage, 0 o seront utilisés.

    root@ubuntu:/usr/bin#
    0
    1. Franzux Messages postés 9705 Statut Contributeur 1 146
       
      Tous tes dépôts sont-ils activés ?
      0
  5. Vous n’avez pas trouvé la réponse que vous recherchez ?

    Posez votre question
  6. Zoya2385 Messages postés 14 Statut Membre
     
    Comment le savoir ?

    desole je suis debutante sous ubunto.
    0
    1. Franzux Messages postés 9705 Statut Contributeur 1 146
       
      Que te renvoie la commande suivante :

      cat /etc/apt/sources.list
      0
  7. Zoya2385 Messages postés 14 Statut Membre
     
    Elle renvoi ceci

    root@ubuntu:/usr/bin# cat /etc/apt/sources.list
    #

    # deb cdrom:[Ubuntu 11.04 _Natty Narwhal_ - Release i386 (20110426)]/ natty main restricted

    # deb cdrom:[Ubuntu 11.04 _Natty Narwhal_ - Release i386 (20110426)]/ natty main restricted

    # See https://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
    # newer versions of the distribution.
    deb http://fr.archive.ubuntu.com/ubuntu/ natty main restricted
    deb-src http://fr.archive.ubuntu.com/ubuntu/ natty main restricted

    ## Major bug fix updates produced after the final release of the
    ## distribution.
    deb http://fr.archive.ubuntu.com/ubuntu/ natty-updates main restricted
    deb-src http://fr.archive.ubuntu.com/ubuntu/ natty-updates main restricted

    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team. Also, please note that software in universe WILL NOT receive any
    ## review or updates from the Ubuntu security team.
    deb http://fr.archive.ubuntu.com/ubuntu/ natty universe
    deb-src http://fr.archive.ubuntu.com/ubuntu/ natty universe
    deb http://fr.archive.ubuntu.com/ubuntu/ natty-updates universe
    deb-src http://fr.archive.ubuntu.com/ubuntu/ natty-updates universe

    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team, and may not be under a free licence. Please satisfy yourself as to
    ## your rights to use the software. Also, please note that software in
    ## multiverse WILL NOT receive any review or updates from the Ubuntu
    ## security team.
    deb http://fr.archive.ubuntu.com/ubuntu/ natty multiverse
    deb-src http://fr.archive.ubuntu.com/ubuntu/ natty multiverse
    deb http://fr.archive.ubuntu.com/ubuntu/ natty-updates multiverse
    deb-src http://fr.archive.ubuntu.com/ubuntu/ natty-updates multiverse

    ## Uncomment the following two lines to add software from the 'backports'
    ## repository.
    ## N.B. software from this repository may not have been tested as
    ## extensively as that contained in the main release, although it includes
    ## newer versions of some applications which may provide useful features.
    ## Also, please note that software in backports WILL NOT receive any review
    ## or updates from the Ubuntu security team.
    # deb http://fr.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
    # deb-src http://fr.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse

    deb http://security.ubuntu.com/ubuntu/ natty-security main restricted
    deb-src http://security.ubuntu.com/ubuntu/ natty-security main restricted
    deb http://security.ubuntu.com/ubuntu/ natty-security universe
    deb-src http://security.ubuntu.com/ubuntu/ natty-security universe
    deb http://security.ubuntu.com/ubuntu/ natty-security multiverse
    deb-src http://security.ubuntu.com/ubuntu/ natty-security multiverse

    ## Uncomment the following two lines to add software from Canonical's
    ## 'partner' repository.
    ## This software is not part of Ubuntu, but is offered by Canonical and the
    ## respective vendors as a service to Ubuntu users.
    deb http://archive.canonical.com/ubuntu/ natty partner
    # deb-src http://archive.canonical.com/ubuntu/ natty partner

    ## This software is not part of Ubuntu, but is offered by third-party
    ## developers who want to ship their latest software.
    deb http://extras.ubuntu.com/ubuntu/ natty main
    deb-src http://extras.ubuntu.com/ubuntu/ natty main
    root@ubuntu:/usr/bin#
    0
    1. Franzux Messages postés 9705 Statut Contributeur 1 146
       
      Tes dépôts semblent OK.
      0
  8. Franzux Messages postés 9705 Statut Contributeur 1 146
     
    As-tu lu les fichiers d'informations après avoir décompressé ton archive ?
    0
  9. Zoya2385 Messages postés 14 Statut Membre
     
    oui il n'y a rien.

    Il faut installer build-essential pour que gcc marche ?
    0
    1. Franzux Messages postés 9705 Statut Contributeur 1 146
       
      Oui, mais il semblerait qu'il soit déjà installé.

      Quand tu décompresses, tu as un répertoire appelé INSTALL qui contient un fichier README. L'as-tu lu ?
      0
  10. Zoya2385 Messages postés 14 Statut Membre
     
    OK. esperons que ca va marcher.
    0
  11. Zoya2385 Messages postés 14 Statut Membre
     
    Bonjour,

    Enfin ça marche lorsque j'ai installé les fichier .deb :

    gcc-4.2.4 packages for Ubuntu 11.04, 32bits i386 are available :
    a) gcc42-compat-4.2.4_i386.deb
    https://docs.google.com/uc?id=0B7S25...nload&hl=en_US
    b) g++42-compat-4.2.4_i386.deb
    https://docs.google.com/uc?id=0B7S25...nload&hl=en_US

    Merci pour tout.
    0