具体的安装顺序如下:
[root@desk soft]# 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 ec551f03: NOKEY
Preparing... ########################################### [100%]
package cloog-ppl-0.15.7-1.2.el6.x86_64 is already installed
[root@desk soft]# rpm -ivh cpp-4.4.7-3.el6.x86_64.rpm
warning: cpp-4.4.7-3.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
Preparing... ########################################### [100%]
package cpp-4.4.7-3.el6.x86_64 is already installed
[root@desk soft]# 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/SHA256 Signature, key ID ec551f03: NOKEY
Preparing... ########################################### [100%]
package glibc-headers-2.12-1.107.el6.x86_64 is already installed
[root@desk soft]# 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/SHA256 Signature, key ID ec551f03: NOKEY
Preparing... ########################################### [100%]
package glibc-devel-2.12-1.107.el6.x86_64 is already installed
[root@desk soft]# rpm -ivh gcc-4.4.7-3.el6.x86_64.rpm
warning: gcc-4.4.7-3.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
Preparing... ########################################### [100%]
1:gcc ########################################### [100%]
[root@desk soft]# gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3)
Copyright ? 2010 Free Software Foundation, Inc.
本程序是自由软件;请参看源代码的版权声明。本软件没有任何担保;
包括没有适销性和某一专用目的下的适用性担保。
[root@desk soft]# 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/SHA256 Signature, key ID ec551f03: NOKEY
error: Failed dependencies:
libstdc++-devel = 4.4.7-3.el6 is needed by gcc-c++-4.4.7-3.el6.x86_64
[root@desk soft]# 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/SHA256 Signature, key ID ec551f03: NOKEY
Preparing... ########################################### [100%]
1:libstdc++-devel ########################################### [100%]
[root@desk soft]# 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/SHA256 Signature, key ID ec551f03: NOKEY
Preparing... ########################################### [100%]
1:gcc-c++ ########################################### [100%]
如果出现其他问题,具体问题具体解决。
相关的rpm包,可以从CentOS镜像文件的package文件夹中查找。