redhat6.4 gcc g++ rpm方式安装步骤

Posted 夏天一去,又是冬季

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了redhat6.4 gcc g++ rpm方式安装步骤相关的知识,希望对你有一定的参考价值。

centos源

包包自行下载

[[email protected] gcc]# rpm -ivh ppl-0.10.2-11.el6.x86_64.rpm 
warning: ppl-0.10.2-11.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY
Preparing...                ########################################### [100%]
   1:ppl                    ########################################### [100%]
[[email protected] gcc]# rpm -ivh cloog-ppl-0.15.7-1.2.el6.x86_64.rpm 
warning: cloog-ppl-0.15.7-1.2.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY
Preparing...                ########################################### [100%]
   1:cloog-ppl              ########################################### [100%]
[[email protected] gcc]# rpm -ivh mpfr-2.4.1-6.el6.x86_64.rpm 
warning: mpfr-2.4.1-6.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY
Preparing...                ########################################### [100%]
   1:mpfr                   ########################################### [100%]
[[email protected] gcc]# rpm -ivh cpp-4.4.7-3.el6.x86_64.rpm 
warning: cpp-4.4.7-3.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing...                ########################################### [100%]
   1:cpp                    ########################################### [100%]
[[email protected] gcc]# rpm -ivh kernel-headers-2.6.32-358.el6.x86_64.rpm 
warning: kernel-headers-2.6.32-358.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing...                ########################################### [100%]
   1:kernel-headers         ########################################### [100%]
[[email protected] gcc]# rpm -ivh glibc-headers-2.12-1.107.el6.x86_64.rpm 
warning: glibc-headers-2.12-1.107.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing...                ########################################### [100%]
   1:glibc-headers          ########################################### [100%]
[[email protected] gcc]# rpm -ivh glibc-devel-2.12-1.107.el6.x86_64.rpm 
warning: glibc-devel-2.12-1.107.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing...                ########################################### [100%]
   1:glibc-devel            ########################################### [100%]
[[email protected] gcc]# rpm -ivh libgomp-4.4.7-3.el6.x86_64.rpm 
warning: libgomp-4.4.7-3.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing...                ########################################### [100%]
   1:libgomp                ########################################### [100%]
[[email protected] gcc]# rpm -ivh gcc-4.4.7-3.el6.x86_64.rpm 
warning: gcc-4.4.7-3.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing...                ########################################### [100%]
   1:gcc                    ########################################### [100%]
[[email protected] gcc]# rpm -ivh libstdc++-devel-4.4.7-3.el6.x86_64.rpm 
warning: libstdc++-devel-4.4.7-3.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing...                ########################################### [100%]
   1:libstdc++-devel        ########################################### [100%]
[[email protected] gcc]# rpm -ivh gcc-c++-4.4.7-3.el6.x86_64.rpm 
warning: gcc-c++-4.4.7-3.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing...                ########################################### [100%]
   1:gcc-c++                ########################################### [100%]
[[email protected] gcc]# gcc -v
使用内建 specs。
目标:x86_64-redhat-linux
配置为:../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
线程模型:posix
gcc 版本 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) 
[[email protected] gcc]# g++ -v
使用内建 specs。
目标:x86_64-redhat-linux
配置为:../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
线程模型:posix
gcc 版本 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) 

ok!

以上是关于redhat6.4 gcc g++ rpm方式安装步骤的主要内容,如果未能解决你的问题,请参考以下文章

linux操作系统编程

[ Linux 长征路第四篇 ] 开发工具 vim的使用 gcc/g++的使用

CentOS6.5安装gcc及g++

redhat6.4 安装epel源和aliyun的源

Ganglia安装扩容

如何最接近rpm的安装方式去编译安装最新的php-fpm