Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 26/06/2014, à 20:18

Arnold59

Ubuntu 14.10 : Installation de gcc 4.9.2

Bonjour,

Actuellement, il m'est impossible de compiler des source C, je ne sais pas la raison, mais lorsque  je souhaite compiler ça bug :

Exemple :
/usr/local/gcc-4.9.0# ./configure

 
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for libatomic support... yes
checking for libcilkrts support... yes
checking for libitm support... yes
checking for libsanitizer support... yes
checking for libvtv support... yes
checking for gcc... gcc
checking for C compiler default output file name... 
configure: error: in `/usr/local/gcc-4.9.0':
configure: error: C compiler cannot create executables
See `config.log' for more details

2) Installation de gcc 4.9.0
De ce fait je tente d'installer gcc 4.9.0  sous Linux Ubuntu 14.04.

Hélas il n'est pas encore présent .deb

Site de GCC : https://gcc.gnu.org/gcc-4.9/changes.html

Je cherche des informations sur le site ubuntu : http://doc.ubuntu-fr.org/gcc

Pour information, la version actuelle de GCC installé est 4.8.2.
gcc --version
gcc (GCC) 4.8.2
Copyright © 2013 Free Software Foundation, Inc.
Ce logiciel est libre; voir les sources pour les conditions de copie.  Il n'y a PAS
GARANTIE; ni implicite pour le MARCHANDAGE ou pour un BUT PARTICULIER.

Que faut-il reconfigurer pour réinstaller GCC et G++ 4.9.2 ?

D'avance merci.

Dernière modification par Arnold59 (Le 17/11/2014, à 14:02)

Hors ligne

#2 Le 26/06/2014, à 22:18

J5012

Re : Ubuntu 14.10 : Installation de gcc 4.9.2

pas claire : tu veux installer gcc 4.9 par compilation ? ou tu veux seulement compiler un autre programme ?

Hors ligne

#3 Le 26/06/2014, à 22:30

tiramiseb

Re : Ubuntu 14.10 : Installation de gcc 4.9.2

Salut,

En même temps, vu que GCC 4.9 est sorti après Ubuntu 14.04, c'est normal qu'il ne soit pas dedans.

GCC 4.8 ne te convient pas ?

Hors ligne

#4 Le 26/06/2014, à 22:32

corrigo

Re : Ubuntu 14.10 : Installation de gcc 4.9.2

Bonjour.

Il cherche sans doute à compiler quelque chose qui requiert gcc en version 4.9

J'ai été confronté à ce problème lors de la compilation de l'émulateur Dolphin sous Mint 13, il fallait la version 2.8 minimum de gcc, et j'étais en dessous de cette version...

Il est possible d'obtenir la version 4.9 facilement via un ppa : https://launchpad.net/~ubuntu-toolchain … ter=trusty

Il suffit de faire

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.9

Une fois que gcc 4.9 est installé, vous aurez besoin de changer le compilateur par défaut de la version 4.8 à la version 4.9

-Allez dans /usr/bin et effacer les liens symboliques pour gcc et g++ :

rm gcc

-Recréer les liens symboliques :

sudo ln -s gcc-4.9 /usr/bin/gcc

J'ai adapté par rapport à ce que j'avais écrit pour la compilation de l'émulateur, si j'ai tort, merci de corriger pour Arnold59.

Dernière modification par corrigo (Le 26/06/2014, à 22:36)

Hors ligne

#5 Le 16/07/2014, à 13:58

Arnold59

Re : Ubuntu 14.10 : Installation de gcc 4.9.2

Merci pour vos réponses.

version 4.9 facilement via un ppa : https://launchpad.net/~ubuntu-toolchain … ter=trusty

Il suffit de faire

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.9

Une fois que gcc 4.9 est installé, vous aurez besoin de changer le compilateur par défaut de la version 4.8 à la version 4.9

-Allez dans /usr/bin
Vérification présence de GCC  : whereis gcc-4.9

gcc-4: 
/usr/bin/gcc-4.9 
/usr/bin/gcc-4.8 
/usr/bin/gcc-4.7
/usr/bin/gcc-4.6 
/usr/bin/gcc-4.4 

/usr/bin/X11/gcc-4.9
/usr/bin/X11/gcc-4.8
/usr/bin/X11/gcc-4.7 
/usr/bin/X11/gcc-4.6
/usr/bin/X11/gcc-4.4 

Vérification présence de G++ : whereis g++-4.9
g++-4:

/usr/bin/g++-4.9 
/usr/bin/g++-4.8 
 
/usr/bin/X11/g++-4.9
/usr/bin/X11/g++-4.8

et effacer les liens symboliques pour gcc et g++ :
rm gcc

-Recréer les liens symboliques :
sudo ln -s gcc-4.9 /usr/bin/gcc

--> Bizarement : Le système reconnait encore GCC et G++ comme 4.8.2 ?
gcc --version
gcc (GCC) 4.8.2
Copyright © 2013 Free Software Foundation, Inc.
Ce logiciel est libre; voir les sources pour les conditions de copie.  Il n'y a PAS
GARANTIE; ni implicite pour le MARCHANDAGE ou pour un BUT PARTICULIER.

# g++ --version
g++ (GCC) 4.8.2
Copyright © 2013 Free Software Foundation, Inc.
Ce logiciel est libre; voir les sources pour les conditions de copie.  Il n'y a PAS
GARANTIE; ni implicite pour le MARCHANDAGE ou pour un BUT PARTICULIER.

Comment mettre à jour le lien ?

/usr/bin# ls gcc-*

gcc-4.4  gcc-4.8  gcc-ar-4.7  gcc-nm      gcc-nm-4.9      gcc-ranlib-4.8
gcc-4.6  gcc-4.9  gcc-ar-4.8  gcc-nm-4.7  gcc-ranlib      gcc-ranlib-4.9
gcc-4.7  gcc-ar   gcc-ar-4.9  gcc-nm-4.8  gcc-ranlib-4.7

Dernière modification par Arnold59 (Le 16/07/2014, à 14:11)

Hors ligne

#6 Le 11/09/2014, à 19:06

Arnold59

Re : Ubuntu 14.10 : Installation de gcc 4.9.2

Bonjour,

Bizarrement le problème vient de réapparaitre ????

J'ai vu qu'une nouvelle version de Gcc et G++ est : 4.9. 1

--> En attendant j'ai ajouté dans  /etc/apt# sources.list

# toolchain  : gcc 4.9. 1
deb http://ppa.launchpad.net/ubuntu-toolchain-r/ppa/ubuntu trusty main
deb-src http://ppa.launchpad.net/ubuntu-toolchain-r/ppa/ubuntu trusty main

Il m'est impossible de compiler :

configure, make, make install  


Erreur : Installation de Apache httpd-2.4.10

/usr/local/httpd-2.4.10# ./configure
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
configure: 
configure: Configuring Apache Portable Runtime library...
configure: 
checking for APR... yes
  setting CC to "gcc"
  setting CPP to "gcc -E"
  setting CFLAGS to " -g -O2 -pthread"
  setting CPPFLAGS to " -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE"
  setting LDFLAGS to " "
configure: 
configure: Configuring Apache Portable Runtime Utility library...
configure: 
checking for APR-util... yes
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/usr/local/httpd-2.4.10':
configure: error: C compiler cannot create executables
See `config.log' for more details

D'avance merci.

Hors ligne

#7 Le 11/09/2014, à 19:12

Compte anonymisé

Re : Ubuntu 14.10 : Installation de gcc 4.9.2

Arnold59 a écrit :

Bonjour,

Bizarrement le problème vient de réapparaitre ????
[...]

Retire le "[RESOLU]" au niveau du titre dans ce cas là

#8 Le 17/11/2014, à 14:18

Arnold59

Re : Ubuntu 14.10 : Installation de gcc 4.9.2

Bonjour,

Effectivement le problème est réapparut ??

Comment réinstaller GCC et G++ ( version 4.9.2) ?

D'avance merci.

Hors ligne

#9 Le 17/11/2014, à 14:20

Arnold59

Re : Ubuntu 14.10 : Installation de gcc 4.9.2

Bonjour,

Effectivement le problème est réapparut ??

Comment réinstaller GCC et G++ ( version 4.9.2) ?

Erreur lorsque je tente d'installer de nouveau GCC :

 apt-get install gcc
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Certains paquets ne peuvent être installés. Ceci peut signifier
que vous avez demandé l'impossible, ou bien, si vous utilisez
la distribution unstable, que certains paquets n'ont pas encore
été créés ou ne sont pas sortis d'Incoming.
L'information suivante devrait vous aider à résoudre la situation : 

Les paquets suivants contiennent des dépendances non satisfaites :
 gcc : Dépend: gcc-4.9 (>= 4.9.1-7~) mais ne sera pas installé
E: Impossible de corriger les problèmes, des paquets défectueux sont en mode « garder en l'état ».

D'avance merci.

Dernière modification par Arnold59 (Le 17/11/2014, à 14:41)

Hors ligne

#10 Le 17/11/2014, à 15:03

Arnold59

Re : Ubuntu 14.10 : Installation de gcc 4.9.2

Il semblerait qu'il y ait un conflit de versions, mais il m'est impossible de supprimer la version 4.9 ???

--> apt-cache policy gcc-4.9

apt-cache policy gcc-4.9
gcc-4.9:
  Installé : (aucun)
  Candidat : 4.9.1-16ubuntu6
 Table de version :
     4.9.1-16ubuntu6 0
        500 http://archive.ubuntu.com/ubuntu/ utopic/main i386 Packages

g++ version 4.9 --> 4.9.1

apt-cache policy g++-4.9
g++-4.9:
  Installé : (aucun)
  Candidat : 4.9.1-16ubuntu6
 Table de version :
     4.9.1-16ubuntu6 0
        500 http://archive.ubuntu.com/ubuntu/ utopic/main i386 Packages

Quelqu'un aurait-il un solution ?

Hors ligne

#11 Le 17/11/2014, à 23:32

J5012

Re : Ubuntu 14.10 : Installation de gcc 4.9.2

as-tu vraiment besoin de cette mise a jour constante de l'environnement de compilation ????

Hors ligne

#12 Le 19/11/2014, à 14:47

Arnold59

Re : Ubuntu 14.10 : Installation de gcc 4.9.2

Bonjour,

Oui un logiciel que je tente d'installer ( ./configure  make make install) a besoin de la dernière version de GCC 4.9.2:
https://gcc.gnu.org/gcc-4.9

J'aimerais remettre le paquet 4.9.1 inclu à la version de Linux Ubuntu 14.10 , mais hélas problème de dépendances

GCC et G++ 4.9.2 en erreur --> impossible de les désinstaller :--> certains paquets seraient cassés ??

Comment remédier ce problème ?

D'avance merci

Hors ligne

#13 Le 21/11/2014, à 10:54

J5012

Re : Ubuntu 14.10 : Installation de gcc 4.9.2

en renversant ce que tu as fait pour l'installer ... il est d'usage de ne pas toucher aux composants du systeme si on ne comprends pas ce qu'on fait , meme si on nous donne une recette pre-machee !

etais-tu des le debut de cette discussion en 14.10 , ou y-as-tu migre en cours de discussion (install fraiche ou mise a jour?) ?

Hors ligne

#14 Le 21/11/2014, à 11:30

Arnold59

Re : Ubuntu 14.10 : Installation de gcc 4.9.2

Bonjour,

Merci de ton retour :
--> Tu m'indique en renversant ce que j'ai fait pour l'installer : apt-get install gcc-4.9.2

Est-ce du genre apt-get remove ou autrement ?
Car problème de dépendance, impossible de supprimer GCC ET G++ 4.9.2

Présence de GCC :

whereis gcc-4.9
gcc-4: /usr/bin/gcc-4.6 /usr/bin/gcc-4.4 /usr/bin/gcc-4.7 /usr/bin/gcc-4.8 /usr/share/gcc-4.9

G++ : versions 4.8 :

whereis g++-4.9
g++-4: /usr/bin/g++-4.8

Mise à jour :

apt-get update

apt-get update
Ign http://security.ubuntu.com utopic-security InRelease
Ign http://extras.ubuntu.com utopic InRelease
Ign http://archive.canonical.com utopic InRelease                                                                                    
Ign http://dl.google.com stable InRelease                                                                                            
Atteint http://deb.opera.com stable InRelease                                                                                        
Réception de : 1 http://security.ubuntu.com utopic-security Release.gpg [933 B]                                                      
Atteint http://archive.canonical.com utopic Release.gpg                                                                              
Atteint http://extras.ubuntu.com utopic Release.gpg                                                                                  
Ign http://dl.google.com stable InRelease                                                                                            
Atteint http://archive.canonical.com utopic Release                                                                                  
Atteint http://extras.ubuntu.com utopic Release                                                                                      
Réception de : 2 http://security.ubuntu.com utopic-security Release [62,0 kB]                                                        
Atteint http://dl.google.com stable Release.gpg                                                                                      
Ign http://fr.archive.ubuntu.com utopic InRelease                                                                                    
Ign http://archive.ubuntu.com utopic InRelease                                                                                       
Atteint http://dl.google.com stable Release.gpg                                                                                      
Atteint http://dl.google.com stable Release                                                                                          
Ign http://fr.archive.ubuntu.com utopic-updates InRelease                                        
Ign http://archive.ubuntu.com utopic-updates InRelease                                           
Atteint http://dl.google.com stable Release                                                                                        
Ign http://fr.archive.ubuntu.com utopic-backports InRelease                                                                        
Ign http://archive.ubuntu.com utopic-security InRelease                                          
Ign http://archive.ubuntu.com utopic-backports InRelease                                         
Atteint http://fr.archive.ubuntu.com utopic Release.gpg                 
Atteint http://deb.opera.com stable/non-free i386 Packages                                     
Atteint http://archive.ubuntu.com utopic Release.gpg                                           
Réception de : 3 http://fr.archive.ubuntu.com utopic-updates Release.gpg [933 B]               
Atteint http://archive.canonical.com utopic/partner Sources                                                                          
Réception de : 4 http://archive.ubuntu.com utopic-updates Release.gpg [933 B]                                                        
Atteint http://fr.archive.ubuntu.com utopic-backports Release.gpg                                                                    
Atteint http://archive.canonical.com utopic/partner i386 Packages                                                                    
Réception de : 5 http://archive.ubuntu.com utopic-security Release.gpg [933 B]                                                       
Atteint http://extras.ubuntu.com utopic/main Sources                                                                                 
Atteint http://fr.archive.ubuntu.com utopic Release                                                                                  
Réception de : 6 http://security.ubuntu.com utopic-security/main Sources [15,7 kB]                                                   
Atteint http://extras.ubuntu.com utopic/main i386 Packages                                                                           
Ign http://archive.canonical.com utopic/partner Translation-en                                                                       
Atteint http://dl.google.com stable/main i386 Packages                                                                               
Réception de : 7 http://security.ubuntu.com utopic-security/restricted Sources [14 B]                                                
Atteint http://archive.ubuntu.com utopic-backports Release.gpg                                                                       
Réception de : 8 http://fr.archive.ubuntu.com utopic-updates Release [62,0 kB]                                                       
Réception de : 9 http://security.ubuntu.com utopic-security/universe Sources [5 252 B]                                               
Réception de : 10 http://security.ubuntu.com utopic-security/multiverse Sources [709 B]                                              
Réception de : 11 http://security.ubuntu.com utopic-security/main i386 Packages [46,6 kB]                                            
Atteint http://dl.google.com stable/main i386 Packages                                                                               
Atteint http://archive.ubuntu.com utopic Release                                                                                     
Réception de : 12 http://security.ubuntu.com utopic-security/restricted i386 Packages [14 B]                                         
Réception de : 13 http://archive.ubuntu.com utopic-updates Release [62,0 kB]                                                         
Atteint http://fr.archive.ubuntu.com utopic-backports Release                                                                        
Réception de : 14 http://security.ubuntu.com utopic-security/universe i386 Packages [24,1 kB]                                        
Réception de : 15 http://security.ubuntu.com utopic-security/multiverse i386 Packages [1 383 B]                                      
Atteint http://security.ubuntu.com utopic-security/main Translation-en                                                               
Atteint http://security.ubuntu.com utopic-security/multiverse Translation-en                                                         
Atteint http://security.ubuntu.com utopic-security/restricted Translation-en                                                         
Ign http://deb.opera.com stable/non-free Translation-fr_FR                                                                           
Atteint http://fr.archive.ubuntu.com utopic/main Sources                                                                             
Atteint http://security.ubuntu.com utopic-security/universe Translation-en                                                           
Ign http://deb.opera.com stable/non-free Translation-fr                                                                              
Ign http://deb.opera.com stable/non-free Translation-en                                                                              
Réception de : 16 http://archive.ubuntu.com utopic-security Release [62,0 kB]                                                        
Atteint http://fr.archive.ubuntu.com utopic/restricted Sources                                                                       
Ign http://extras.ubuntu.com utopic/main Translation-fr_FR                                                                           
Ign http://extras.ubuntu.com utopic/main Translation-fr                                                                              
Ign http://extras.ubuntu.com utopic/main Translation-en                                                                              
Atteint http://fr.archive.ubuntu.com utopic/universe Sources                                                                         
Atteint http://fr.archive.ubuntu.com utopic/multiverse Sources                                                       
Réception de : 17 http://fr.archive.ubuntu.com utopic-updates/main Sources [20,0 kB]                                                 
Ign http://dl.google.com stable/main Translation-fr_FR                                                                               
Atteint http://archive.ubuntu.com utopic-backports Release                                                            
Ign http://dl.google.com stable/main Translation-fr                                                                                  
Ign http://dl.google.com stable/main Translation-en                                                                                  
Ign http://dl.google.com stable/main Translation-fr_FR                                                                               
Atteint http://archive.ubuntu.com utopic/main Sources                                                                                
Ign http://dl.google.com stable/main Translation-fr                                                                                  
Ign http://dl.google.com stable/main Translation-en                                                                                  
Atteint http://archive.ubuntu.com utopic/restricted Sources                                                                          
Réception de : 18 http://fr.archive.ubuntu.com utopic-updates/restricted Sources [14 B]    
Atteint http://archive.ubuntu.com utopic/universe Sources                                  
Réception de : 19 http://fr.archive.ubuntu.com utopic-updates/universe Sources [6 336 B]   
Atteint http://archive.ubuntu.com utopic/multiverse Sources                                                       
Réception de : 20 http://fr.archive.ubuntu.com utopic-updates/multiverse Sources [709 B]   
Atteint http://archive.ubuntu.com utopic/main i386 Packages                                
Atteint http://fr.archive.ubuntu.com utopic-backports/main Sources                         
Atteint http://archive.ubuntu.com utopic/restricted i386 Packages                          
Atteint http://fr.archive.ubuntu.com utopic-backports/restricted Sources                   
Atteint http://archive.ubuntu.com utopic/universe i386 Packages                              
Atteint http://fr.archive.ubuntu.com utopic-backports/universe Sources                       
Atteint http://archive.ubuntu.com utopic/multiverse i386 Packages                     
Atteint http://fr.archive.ubuntu.com utopic-backports/multiverse Sources              
Atteint http://archive.ubuntu.com utopic/main Translation-fr
Atteint http://archive.ubuntu.com utopic/main Translation-en
Atteint http://archive.ubuntu.com utopic/multiverse Translation-fr
Atteint http://archive.ubuntu.com utopic/multiverse Translation-en
Atteint http://archive.ubuntu.com utopic/restricted Translation-fr
Atteint http://archive.ubuntu.com utopic/restricted Translation-en
Atteint http://archive.ubuntu.com utopic/universe Translation-fr
Atteint http://archive.ubuntu.com utopic/universe Translation-en
Réception de : 21 http://archive.ubuntu.com utopic-updates/main Sources [20,0 kB]
Réception de : 22 http://archive.ubuntu.com utopic-updates/restricted Sources [14 B]
Réception de : 23 http://archive.ubuntu.com utopic-updates/universe Sources [6 336 B]
Réception de : 24 http://archive.ubuntu.com utopic-updates/multiverse Sources [709 B]
Réception de : 25 http://archive.ubuntu.com utopic-updates/main i386 Packages [55,0 kB]
Réception de : 26 http://archive.ubuntu.com utopic-updates/restricted i386 Packages [14 B]
Réception de : 27 http://archive.ubuntu.com utopic-updates/universe i386 Packages [27,8 kB]
Réception de : 28 http://archive.ubuntu.com utopic-updates/multiverse i386 Packages [1 383 B]                                        
Atteint http://archive.ubuntu.com utopic-updates/main Translation-en                                                                 
Atteint http://archive.ubuntu.com utopic-updates/multiverse Translation-en                                                           
Atteint http://archive.ubuntu.com utopic-updates/restricted Translation-en                                                           
Atteint http://archive.ubuntu.com utopic-updates/universe Translation-en                                                             
Réception de : 29 http://archive.ubuntu.com utopic-security/main Sources [15,7 kB]                                                   
Réception de : 30 http://archive.ubuntu.com utopic-security/restricted Sources [14 B]                                                
Réception de : 31 http://archive.ubuntu.com utopic-security/universe Sources [5 252 B]                                               
Réception de : 32 http://archive.ubuntu.com utopic-security/multiverse Sources [709 B]                                               
Réception de : 33 http://archive.ubuntu.com utopic-security/main i386 Packages [46,6 kB]                                             
Réception de : 34 http://archive.ubuntu.com utopic-security/restricted i386 Packages [14 B]                                          
Réception de : 35 http://archive.ubuntu.com utopic-security/universe i386 Packages [24,1 kB]                                         
Réception de : 36 http://archive.ubuntu.com utopic-security/multiverse i386 Packages [1 383 B]                                       
Atteint http://archive.ubuntu.com utopic-security/main Translation-en                                                                
Atteint http://archive.ubuntu.com utopic-security/multiverse Translation-en                                                          
Atteint http://archive.ubuntu.com utopic-security/restricted Translation-en                                                          
Atteint http://archive.ubuntu.com utopic-security/universe Translation-en                                                            
Atteint http://archive.ubuntu.com utopic-backports/main Sources                                                                      
Atteint http://archive.ubuntu.com utopic-backports/restricted Sources                                                                
Atteint http://archive.ubuntu.com utopic-backports/universe Sources                                                                  
Atteint http://archive.ubuntu.com utopic-backports/multiverse Sources                                                                
Atteint http://archive.ubuntu.com utopic-backports/main i386 Packages                                                                
Atteint http://archive.ubuntu.com utopic-backports/restricted i386 Packages                                                          
Atteint http://archive.ubuntu.com utopic-backports/universe i386 Packages                                                            
Atteint http://archive.ubuntu.com utopic-backports/multiverse i386 Packages                                                          
Atteint http://archive.ubuntu.com utopic-backports/main Translation-en                                                               
Atteint http://archive.ubuntu.com utopic-backports/multiverse Translation-en                                                         
Atteint http://archive.ubuntu.com utopic-backports/restricted Translation-en                                                         
Atteint http://archive.ubuntu.com utopic-backports/universe Translation-en                                                           
578 ko réceptionnés en 41s (13,9 ko/s)                                                                                               
Erreur : Le délai d'attente est dépassé
Lecture des listes de paquets... Fait

Suivi de apt-get upgrade :

apt-get upgrade
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Calcul de la mise à jour... Fait
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
5 partiellement installés ou enlevés.
Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [O/n] 

Je saisi [O : oui ] et les erreurs suivantes apparaissent :

Souhaitez-vous continuer ? [O/n] O
Paramétrage de udev (208-8ubuntu8.1) ...
udev stop/waiting
udev start/running, process 21253
update-initramfs: deferring update (trigger activated)
insserv: warning: script 'K36cups' missing LSB tags and overrides
insserv: warning: script 'cups' missing LSB tags and overrides
insserv: There is a loop at service grub-common if started
insserv: There is a loop between service cups and hwclock if started
insserv:  loop involving service hwclock at depth 3
insserv:  loop involving service mountdevsubfs at depth 2
insserv: There is a loop between service cups and udev if started
insserv:  loop involving service udev at depth 1
insserv: There is a loop at service smbd if started
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service smbd and cups if started
insserv:  loop involving service cups at depth 3
insserv:  loop involving service smbd at depth 2
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Max recursions depth 99 reached
insserv:  loop involving service checkroot at depth 5
insserv:  loop involving service mountkernfs at depth 1
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: erreur de traitement du paquet udev (--configure) :
 le sous-processus script post-installation installé a retourné une erreur de sortie d'état 1
Aucun rapport « apport » n'a été créé car le message d'erreur indique une erreur consécutive à un échec précédent.
                                                                                                                  Aucun rapport « apport » n'a été créé car le message d'erreur indique une erreur consécutive à un échec précédent.
                                                                                              Aucun rapport « apport » écrit car MaxReports a déjà été atteint
                        dpkg: des problèmes de dépendances empêchent la configuration de mountall :
 mountall dépend de udev ; cependant :
 Le paquet udev n'est pas encore configuré.

dpkg: erreur de traitement du paquet mountall (--configure) :
 problèmes de dépendances - laissé non configuré
dpkg: des problèmes de dépendances empêchent la configuration de systemd :
 systemd dépend de udev ; cependant :
 Le paquet udev n'est pas encore configuré.

dpkg: erreur de traitement du paquet systemd (--configure) :
 problèmes de dépendances - laissé non configuré
dpkg: des problèmes de dépendances empêchent la configuration de libpam-systemd:i386 :
 libpam-systemd:i386 dépend de systemd (= 208-8ubuntu8.1) ; cependant :
 Le paquet systemd n'est pas encore configuré.

dpkg: erreur de traitement du paquet libpam-systemd:i386 (--configure) :
 problèmes de dépendances - laissé non configuré
Paramétrage de lightdm (1.12.2-0ubuntu1) ...
insserv: warning: script 'K36cups' missing LSB tags and overrides
insserv: warning: script 'cups' missing LSB tags and overrides
insserv: There is a loop at service grub-common if started
insserv: There is a loop between service cups and hwclock if started
insserv:  loop involving service hwclock at depth 3
insserv:  loop involving service mountdevsubfs at depth 2
insserv: There is a loop between service cups and udev if started
insserv:  loop involving service udev at depth 1
insserv: There is a loop at service smbd if started
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service smbd and cups if started
insserv:  loop involving service cups at depth 3
insserv:  loop involving service smbd at depth 2
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Starting cups depends on grub-common and therefore on system facility `$all' which can not be true!
insserv: Max recursions depth 99 reached
insserv:  loop involving service checkroot at depth 5
insserv:  loop involving service mountkernfs at depth 1
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: erreur de traitement du paquet lightdm (--configure) :
 le sous-processus script post-installation installé a retourné une erreur de sortie d'état 1
Aucun rapport « apport » écrit car MaxReports a déjà été atteint
                                                                Traitement des actions différées (« triggers ») pour initramfs-tools (0.103ubuntu8) ...
update-initramfs: Generating /boot/initrd.img-3.16.0-25-generic
Des erreurs ont été rencontrées pendant l'exécution :
 udev
 mountall
 systemd
 libpam-systemd:i386
 lightdm
E: Sub-process /usr/bin/dpkg returned an error code (1)

Comment résoudre ce problème ?

Le problème était apparut avec Linux Ubuntu 14.04.
Depuis j'avais migrer vers Linux Ubuntu 14.10, hélas je pensais que le fait ajouter le ppa permettait 'avoir la dernière version de GCC et G++ sans problème ;-)

D'avance merci.

Dernière modification par Arnold59 (Le 21/11/2014, à 14:10)

Hors ligne

#15 Le 22/11/2014, à 22:39

J5012

Re : Ubuntu 14.10 : Installation de gcc 4.9.2

ce que je comprends de tes posts precedents :
- tu avais 14.04, puis tu as installe gcc 4.9.1 par compilation
- tu es maintenant en 14.10 avec gcc 4.9.2 installe avec le paquetage officiel

as-tu migre de 14.04 en 14.10 , auquel cas il y aurait des libs perdues ...
ou est-ce une 14.10 fresh install ? si fresh depuis le premier post, tu devais deja etre en 4.9.2 ? pkoi compiler 4.9.1 ?

Hors ligne

#16 Le 23/11/2014, à 11:27

Arnold59

Re : Ubuntu 14.10 : Installation de gcc 4.9.2

Bonjour,

Oui, j'ai migré vers Linux Ubuntu 14.10 sur mes 3 pc, un seul pose problème comme indiqué sur les posts précédents :

J'ai vérifié les versions de Gcc et G++ installés sur les 2 autres ordinateurs tournant sous Linux Ubuntu 14.10, la version de Gcc est 4.9.2 et aucun conflit.

Comment corriger ce problème et conflit avec Gcc et G++ ( 4.8 , 4.9, impossible d'installer 4.9.2) ?

D'avance merci.

Dernière modification par Arnold59 (Le 23/11/2014, à 11:39)

Hors ligne

#17 Le 24/11/2014, à 22:03

J5012

Re : Ubuntu 14.10 : Installation de gcc 4.9.2

tu a toujours ton dossier de compilation 4.9.1 ?
des notes du make devraient t'aider a le desinstaller completement ... plus les astuces que tu as mis en oeuvre pour faire accepter le 4.9.1 en place du 4.8.2 (version actu sur mon 14.04)

Hors ligne

#18 Le 16/03/2015, à 19:26

Arnold59

Re : Ubuntu 14.10 : Installation de gcc 4.9.2

Bonjour,

Impossible de compiler avec GCC ( langage C) ni G++ ( langage C++)
Hélas, le système a planté de nouveau avec GCC  ?

En tant que root :

root@user-laptop:/usr/bin# gcc --version
gcc (GCC) 4.8.2
Copyright © 2013 Free Software Foundation, Inc.
Ce logiciel est libre; voir les sources pour les conditions de copie.  Il n'y a PAS
GARANTIE; ni implicite pour le MARCHANDAGE ou pour un BUT PARTICULIER.

root@user-laptop:/usr/bin# g++ --version
g++ (GCC) 4.8.2
Copyright © 2013 Free Software Foundation, Inc.
Ce logiciel est libre; voir les sources pour les conditions de copie.  Il n'y a PAS
GARANTIE; ni implicite pour le MARCHANDAGE ou pour un BUT PARTICULIER.

Utilisateur :

user@user-laptop:/$gcc --version
gcc (GCC) 4.7.4 20140401 for GNAT GPL gpl-2014 (20140405)
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
See your AdaCore support agreement for details of warranty and support.
If you do not have a current support agreement, then there is absolutely
no warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

user@user-laptop:/$ g++ --version
g++ (GCC) 4.7.4 20140401 for GNAT GPL gpl-2014 (20140405)
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
See your AdaCore support agreement for details of warranty and support.
If you do not have a current support agreement, then there is absolutely
no warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

Liste des versions de GCC et G++
/usr/bin
ls gcc-*

 gcc-4.4  gcc-4.6  gcc-4.7  gcc-4.8  gcc-ar-4.7  gcc-ar-4.8  gcc-nm-4.7  gcc-nm-4.8  gcc-ranlib-4.7  gcc-ranlib-4.8

ls g++*
g++-4.8

--> Synaptic : je tente de réparer le paquet gcc 4:4.9.1-4ubuntu2 mais impossible : voici le message d'erreur :

E: Impossible de corriger les problèmes, des paquets défectueux sont en mode « garder en l'état ».
E: Erreur, pkgProblem::Resolve a généré des ruptures, ce qui a pu être causé par les paquets devant être gardés en l'état.
E: Impossible de corriger les dépendances
E: Erreur, pkgProblem::Resolve a généré des ruptures, ce qui a pu être causé par les paquets devant être gardés en l'état.
E: Erreur, pkgProblem::Resolve a généré des ruptures, ce qui a pu être causé par les paquets devant être gardés en l'état.
E: Impossible de corriger les dépendances
E: Erreur, pkgProblem::Resolve a généré des ruptures, ce qui a pu être causé par les paquets devant être gardés en l'état.
E: Impossible de corriger les dépendances

--> en mode console : apt-get install gcc :

apt-get install gcc
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Certains paquets ne peuvent être installés. Ceci peut signifier
que vous avez demandé l'impossible, ou bien, si vous utilisez
la distribution unstable, que certains paquets n'ont pas encore
été créés ou ne sont pas sortis d'Incoming.
L'information suivante devrait vous aider à résoudre la situation : 

Les paquets suivants contiennent des dépendances non satisfaites :
 gcc : Dépend: gcc-4.9 (>= 4.9.1-7~) mais ne sera pas installé
E: Impossible de corriger les problèmes, des paquets défectueux sont en mode « garder en l'état ».

Comment résoudre ce problème  ?

Dernière modification par Arnold59 (Le 16/03/2015, à 19:52)

Hors ligne