安装GCC for Red Hat Enterprise Linux Server release 6(64位)
对于gcc (g++)这样的软件,因其依赖包不是一般的多,相信A依赖B,B依赖C,C依赖D、E等等等等的情况会让很多人崩溃;
注意:
- 1、以下为RHEL 6.1 x64平台示例(32位的依次类推);
- 2、各软件包版本号可能需要修改为你G盘上有的版本号;
插入光盘,进入目录cd /media/Packages按顺序安装如下包(以下全部安装)
- 1. libgcc-4.4.5-6.el6.i686.rpm
- 2. nss-softokn-freebl-3.12.9-3.el6.i686.
- 3. glibc-devel-2.12-1.25.el6.i686.rpm
- 4. libstdc++-devel-4.4.5-6.el6.i686.rpm
- 5. gmp-4.3.1-7.el6.i686.rpm
- 6. mpfr-2.4.1-6.el6.x86_64.rpm
- 7. cpp-4.4.5-6.el6.x86_64.rpm
- 8. ppl-0.10.2-11.el6.i686.rpm
- 9. cloog-ppl-0.15.7-1.2.el6.i686.rpm
- 10.libgomp-4.4.5-6.el6.i686.rpm
- 11. kernel-headers-2.6.32-131.0.15.el6.x86_64.rpm
- 12.glibc-2.12-1.25.el6.i686.rpm
- 13. glibc-headers-2.12-1.25.el6.x86_64.rpm
- 14. gcc-4.4.5-6.el6.x86_64.rpm
- 15. gcc-c++-4.4.5-6.el6.x86_64.rpm
- [19:37:@rhel6_0 Packages]>rpm -ivh kernel-headers-2.6.32-131.0.15.el6.x86_64.rpm glibc-headers-2.12-1.25.el6.x86_64.rpm glibc-devel-2.12-1.25.el6.i686.rpm glibc-devel-2.12-1.25.el6.x86_64.rpm cpp-4.4.5-6.el6.x86_64.rpm libgomp-4.4.5-6.el6.x86_64.rpm libgomp-4.4.5-6.el6.i686.rpm libstdc++-devel-4.4.5-6.el6.x86_64.rpm libstdc++-devel-4.4.5-6.el6.i686.rpm gcc-4.4.5-6.el6.x86_64.rpm libgcc-4.4.5-6.el6.x86_64.rpm libgcc-4.4.5-6.el6.i686.rpm gcc-c++-4.4.5-6.el6.x86_64.rpm glibc-2.12-1.25.el6.i686.rpm glibc-2.12-1.25.el6.x86_64.rpm libstdc++-4.4.5-6.el6.x86_64.rpm libstdc++-4.4.5-6.el6.i686.rpm mpfr-2.4.1-6.el6.x86_64.rpm cloog-ppl-0.15.7-1.2.el6.i686.rpm cloog-ppl-0.15.7-1.2.el6.x86_64.rpm gmp-4.3.1-7.el6.i686.rpm gmp-4.3.1-7.el6.x86_64.rpm ppl-0.10.2-11.el6.x86_64.rpm ppl-0.10.2-11.el6.i686.rpm nss-softokn-freebl-3.12.9-3.el6.i686.rpm nss-softokn-freebl-3.12.9-3.el6.x86_64.rpm --force