Installation de GCC 4.8.2 sur Red Hat Enterprise linux 6.5

Je suis nouveau sur Red Hat Enterprise linux.
Je suis confronté à des problèmes lors de la compilation de gcc 4.8.2 sur Red Hat Enterprise Linux 6.5
Je baisse;oaded le code source de GNU site web.
J'ai suivi les étapes à partir de ce lien
http://gcc.gnu.org/wiki/InstallingGCC
Les commandes de feu sont:

tar xzf gcc-4.6.2.tar.gz
cd gcc-4.6.2
./contrib/download_prerequisites
cd ..
mkdir objdir
cd objdir
$PWD/../gcc-4.8.2/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 libitm support... yes
checking for libsanitizer support... yes
checking for gcc... gcc
checking for C compiler default output file name... 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 ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ accepts -static-libstdc++ -static-libgcc... no
checking for gnatbind... gnatbind
checking for gnatmake... gnatmake
checking whether compiler driver understands Ada... yes
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for objdir... .libs
checking for the correct version of gmp.h... no
configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
their locations.  Source code for these libraries can be found at
their respective hosting sites as well as at
ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
http://gcc.gnu.org/install/prerequisites.html for additional info.  If
you obtained GMP, MPFR and/or MPC from a vendor distribution package,
make sure that you have installed both the libraries and the header
files.  They may be located in separate packages.

J'ai étudié sur Google puis-je trouver la suite question par rapport à ce
http://gcc.gnu.org/ml/gcc-help/2012-02/msg00142.html
mais de nouveau redirigé me à le lien ci-dessus que j'ai trouvé et suivi antérieures.

J'ai besoin de conseils sur la façon de procéder à cette question.
Les Suggestions sont les bienvenues.

  • Comme mentionné précédemment,vous devez avoir le mentionné bibliothèques, comme indiqué dans le journal des erreurs---gmp,mpfr et mpc!
  • je pense que l'utilisation yum info vous pouvez savoir si vous avez que les utilitaires installés ou non.
  • Envisager l'installation de la Redhat Développeur d'Outils, qui est un add-on que les paquets des versions plus récentes des logiciels de développement, y compris la GCC. Le commercial RedHat version est ici: access.redhat.com/documentation/en-US/Red_Hat_Developer_Toolset La libre identiques CentOS version (fonctionne sur RHEL) est ici: linux.web.le cern.ch/linux/devtoolset
  • Êtes-vous construire GCC pour le plaisir/l'apprentissage ou parce que vous avez besoin d'une version plus récente?
  • Je vois deux 4.6.2 et 4.8.2 dans votre message, avez-vous toujours le type de la même version?
  • Oui, c'était de la faute de frappe c'est 4.8.2

InformationsquelleAutor Dhiraj | 2014-08-21