基于centos 6.6 64位
首先要挂载光盘,进入光盘:
*************************** gcc安装 ****************************
--安装gcc,提示依赖库失败,需要cloog-ppl 和 cpp
[root@localhost Packages]# rpm -ivh gcc-4.4.7-11.el6.x86_64.rpm
error: Failed dependencies:
cloog-ppl >= 0.15 is needed by gcc-4.4.7-11.el6.x86_64
cpp = 4.4.7-11.el6 is needed by gcc-4.4.7-11.el6.x86_64
--查找ppl安装包
[root@localhost Packages]# ls | grep ppl
cloog-ppl-0.15.7-1.2.el6.i686.rpm
cloog-ppl-0.15.7-1.2.el6.x86_64.rpm
--安装相应的ppl包,提示依赖库失败,需要 libppl.so.7 和 libppl_c.so.2
[root@localhost Packages]# 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
error: Failed dependencies:
libppl.so.7()(64bit) is needed by cloog-ppl-0.15.7-1.2.el6.x86_64
libppl_c.so.2()(64bit) is needed by cloog-ppl-0.15.7-1.2.el6.x86_64
--查找 ppl 解决依赖库 libppl.so.7 和 libppl_c.so.2
[root@localhost Packages]# ls | grep ppl
ppl-0.10.2-11.el6.i686.rpm
ppl-0.10.2-11.el6.x86_64.rpm
--安装ppl 依赖库 libppl.so.7 和 libppl_c.so.2
[root@localhost Packages]# 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%]
--安装 cloog-ppl
[root@localhost Packages]# 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%]
--查找cpp安装包
[root@localhost Packages]# ls | grep cpp
cpp-4.4.7-11.el6.x86_64.rpm
--安装cpp失败,需要依赖库 libmpfr.so.1
[root@localhost Packages]# rpm -ivh cpp-4.4.7-11.el6.x86_64.rpm
warning: cpp-4.4.7-11.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
error: Failed dependencies:
libmpfr.so.1()(64bit) is needed by cpp-4.4.7-11.el6.x86_64
--查找依赖库cpp依赖库 libmpfr.so.1
[root@localhost Packages]# ls | grep mpfr
mpfr-2.4.1-6.el6.i686.rpm
mpfr-2.4.1-6.el6.x86_64.rpm
mpfr-devel-2.4.1-6.el6.i686.rpm
mpfr-devel-2.4.1-6.el6.x86_64.rpm
--安装 cpp依赖库 libmpfr.so.1
[root@localhost Packages]# 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%]
--安装cpp
[root@localhost Packages]# rpm -ivh cpp-4.4.7-11.el6.x86_64.rpm
warning: cpp-4.4.7-11.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing... ########################################### [100%]
1:cpp ########################################### [100%]
--最后安装gcc,提示成功
[root@localhost Packages]# rpm -ivh gcc-4.4.7-11.el6.x86_64.rpm
warning: gcc-4.4.7-11.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing... ########################################### [100%]
1:gcc ########################################### [100%]
*************************** gcc-c++ 安装 ****************************
[root@localhost Packages]# rpm -ivh gcc-c++-4.4.7-11.el6.x86_64.rpm
warning: gcc-c++-4.4.7-11.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
error: Failed dependencies:
libstdc++-devel = 4.4.7-11.el6 is needed by gcc-c++-4.4.7-11.el6.x86_64
[root@localhost Packages]# ls | grep stdc++
compat-libstdc++-296-2.96-144.el6.i686.rpm
compat-libstdc++-33-3.2.3-69.el6.i686.rpm
compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm
libstdc++-4.4.7-11.el6.i686.rpm
libstdc++-4.4.7-11.el6.x86_64.rpm
libstdc++-devel-4.4.7-11.el6.i686.rpm
libstdc++-devel-4.4.7-11.el6.x86_64.rpm
libstdc++-docs-4.4.7-11.el6.x86_64.rpm
[root@localhost Packages]# rpm -ivh libstdc++-devel-4.4.7-11.el6.x86_64.rpm
warning: libstdc++-devel-4.4.7-11.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing... ########################################### [100%]
1:libstdc++-devel ########################################### [100%]
[root@localhost Packages]# rpm -ivh gcc-c++-4.4.7-11.el6.x86_64.rpm
warning: gcc-c++-4.4.7-11.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing... ########################################### [100%]
1:gcc-c++ ########################################### [100%]
******************************************
总结:安装的依赖关系如下:
gcc-4.4.7-11.el6.x86_64.rpm
cloog-ppl
【ppl】
libppl.so.7()
libppl_c.so.2()
cpp = 4.4.7-11.el6 is needed by gcc-4.4.7-11.el6.x86_64
【mpfr】
libmpfr.so.1
gcc-c++-4.4.7-11.el6.x86_64.rpm
libstdc++-devel