当前位置: > RedHat >

RHEL_6.0 GCC安装

时间:2016-01-06 23:59来源:linux.it.net.cn 作者:it.net.cn

在RHEL中安装软件的时候,很多时候都必须进行编译,需要gcc。

但安装gcc的时候很多时候都会报错,大部分是因为安装包顺序不对,我自己也经历过oracle安装失败、缺少链接库等报错信息,在这里做个记录。

安装环境是RHEL 6.0 64bit的系统,按照下面的安装顺序,屡试不爽。

1、安装gcc,软件安装顺序不能错

 
  1. rpm -ivh glibc-common-2.12-1.7.el6.x86_64.rpm  
  2. rpm -ivh kernel-headers-2.6.32-71.el6.x86_64.rpm  
  3. rpm -ivh libgcc-4.4.4-13.el6.x86_64.rpm  
  4. rpm -ivh glibc-2.12-1.7.el6.x86_64.rpm  
  5. rpm -ivh libgomp-4.4.4-13.el6.x86_64.rpm  
  6. rpm -ivh nscd-2.12-1.7.el6.x86_64.rpm  
  7. rpm -ivh glibc-headers-2.12-1.7.el6.x86_64.rpm  
  8. rpm -ivh glibc-devel-2.12-1.7.el6.x86_64.rpm  
  9. rpm -ivh mpfr-2.4.1-6.el6.x86_64.rpm  
  10. rpm -ivh ppl-0.10.2-11.el6.x86_64.rpm  
  11. rpm -ivh cloog-ppl-0.15.7-1.2.el6.x86_64.rpm  
  12. rpm -ivh cpp-4.4.4-13.el6.x86_64.rpm  
  13. rpm -ivh gcc-4.4.4-13.el6.x86_64.rpm  
rpm -ivh glibc-common-2.12-1.7.el6.x86_64.rpm
rpm -ivh kernel-headers-2.6.32-71.el6.x86_64.rpm
rpm -ivh libgcc-4.4.4-13.el6.x86_64.rpm
rpm -ivh glibc-2.12-1.7.el6.x86_64.rpm
rpm -ivh libgomp-4.4.4-13.el6.x86_64.rpm
rpm -ivh nscd-2.12-1.7.el6.x86_64.rpm
rpm -ivh glibc-headers-2.12-1.7.el6.x86_64.rpm
rpm -ivh glibc-devel-2.12-1.7.el6.x86_64.rpm
rpm -ivh mpfr-2.4.1-6.el6.x86_64.rpm
rpm -ivh ppl-0.10.2-11.el6.x86_64.rpm
rpm -ivh cloog-ppl-0.15.7-1.2.el6.x86_64.rpm
rpm -ivh cpp-4.4.4-13.el6.x86_64.rpm
rpm -ivh gcc-4.4.4-13.el6.x86_64.rpm

 

2、安装gcc-c++

 
  1. rpm -ivh libstdc++-4.4.4-13.el6.x86_64.rpm  
  2. rpm -ivh libstdc++-devel-4.4.4-13.el6.x86_64.rpm  
  3. rpm -ivh gcc-c++-4.4.4-13.el6.x86_64.rpm  



(责任编辑:IT)
------分隔线----------------------------
栏目列表
推荐内容