Probleme a l'installe avec C++

Fermé
zymno - 1 juin 2005 à 00:12
kmf31 Messages postés 1564 Date d'inscription mercredi 30 mars 2005 Statut Contributeur Dernière intervention 22 juin 2007 - 1 juin 2005 à 01:03
bonjour,

je travail sous linux mandrake 10.1.
J'essai d'installer des programmes source et a chaque fois que je fais ./configure, linux me repond :

didier@ip-220 klogoturtle-0.6]$ ./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 for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking whether g++ supports -Wundef... no
checking whether g++ supports -Wno-long-long... no
checking whether g++ supports -Wnon-virtual-dtor... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
[didier@ip-220 klogoturtle-0.6]$ cd admin
[didier@ip-220 admin]$ ./install.sh
bash: ./install.sh: No such file or directory
[didier@ip-220 admin]$ su root
Password:
[root@ip-220 admin]# cd..
[root@ip-220 klogoturtle-0.6]# ./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 for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking whether g++ supports -Wundef... no
checking whether g++ supports -Wno-long-long... no
checking whether g++ supports -Wnon-virtual-dtor... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

j'ai fait une installation de c++ mais je n'ai rien dans le repertoire /usr/lib/cpp ??

Est ce que quelqu'un pourrait m'aider. MErci d'avance

2 réponses

Utilisateur anonyme
1 juin 2005 à 00:49
Salut Zymno

Tu voulais installer un programme ou la une librairie c++?
As-tu essayer avec konqueror?
1.Tu cliques sur la maison(repertoire personnel)
2.Tu cliques sur Fenêtre
3.Tu cliques sur Afficher:Emulateur de terminal
4.Tu te loggues en root
5.Tu surfes jusqu'à ton dossier à installer
6.Tu fais un glisser-déposer dans le terminal
7.C'est comme celà que je travaille
8.Si celà ne marche pas, fais un tour du côté des miroirs ftp voir si il y a un rpm semblable à celui que tu as et travaille avec #urpmi <le chemin internet du rpm > ou télécharge-le tout bonnement.
9.Veilles à prendre le rpm qui convienne à ta bécane.
10.Peux pas faire plus , si des connaisseurs peuvent aider, on vous paie un pot au café : Ananas-Cécémel

Bonne route
Bxflash, le 01.06.05 Une date à ne pas oublier
0
kmf31 Messages postés 1564 Date d'inscription mercredi 30 mars 2005 Statut Contributeur Dernière intervention 22 juin 2007 501
1 juin 2005 à 01:03
C'est sur que le ./configure ne trouve pas le "g++" donc le compilateur C++. Donc quelque chose ne va pas. Apres le nom "cpp" ne designe pas le C++ mais le preprocesseur (le programe qui remplace les "#define", "#include" avant la vraie compilation). Ca aussi doit etre installe mais ce n'est qu'une petite partie du compilateur. Peut-etre tu as simplement installe cpp et pas g++? Il te faut reverifier ca et tout installer qui a un rapport avec gcc et g++, mais seulement une version, par exemple en MDK 10.1 soit gcc-3.4.?? ou soit gcc-3.3.?? mais pas les deux ensemble car ca peut creer de conflits. Probablement tu as par defaut la version 3.4.??. Par contre pour la version que tu choisis installe tous les paquets avec "gcc-blabla" et aussi avec "g++" dans le nom.
0