Install GCC into CentOS (为CentOS安装GCC)

0. Environment

CentOS 6.0 32bit (CentOS-6.0-i386-bin-DVD.iso)

1.Steps

1.1 Mount CD

$ mkdir /mnt/cdrom

$ mount /dev/cdrom /mnt/cdrom

1.2 Install rpm packages

$ cd /mnt/cdrom/Packages

rpm -ivh ppl-0.10.2-11.el6.i686.rpm
rpm -ivh cloog-ppl-0.15.7-1.2.el6.i686.rpm
rpm -ivh mpfr-2.4.1-6.el6.i686.rpm
rpm -ivh cpp-4.4.4-13.el6.i686.rpm
rpm -ivh kernel-headers-2.6.32-71.el6.i686.rpm
rpm -ivh glibc-headers-2.12-1.7.el6.i686.rpm
rpm -ivh glibc-devel-2.12-1.7.el6.i686.rpm
rpm -ivh gcc-4.4.4-13.el6.i686.rpm
rpm -ivh libstdc++-devel-4.4.4-13.el6.i686.rpm
rpm -ivh gcc-c++-4.4.4-13.el6.i686.rpm

2. Reference

[1] http://whbill.blog.51cto.com/3280780/707092

In this blog, the author installed the following packages, but in my experiment, there is no need to install all of them

rpm -ivh glibc-common-2.12-1.7.el6.i686.rpm
rpm -ivh kernel-headers-2.6.32-71.el6.i686.rpm
rpm -ivh libgcc-4.4.4-13.el6.i686.rpm
rpm -ivh glibc-2.12-1.7.el6.i686.rpm
rpm -ivh mpfr-2.4.1-6.el6.i686.rpm
rpm -ivh cpp-4.4.4-13.el6.i686.rpm
rpm -ivh libgomp-4.4.4-13.el6.i686.rpm
rpm -ivh nscd-2.12-1.7.el6.i686.rpm
rpm -ivh glibc-headers-2.12-1.7.el6.i686.rpm
rpm -ivh glibc-devel-2.12-1.7.el6.i686.rpm
rpm -ivh ppl-0.10.2-11.el6.i686.rpm
rpm -ivh cloog-ppl-0.15.7-1.2.el6.i686.rpm
rpm -ivh gcc-4.4.4-13.el6.i686.rpm
rpm -ivh libstdc++-4.4.4-13.el6.i686.rpm
rpm -ivh libstdc++-devel-4.4.4-13.el6.i686.rpm
rpm -ivh gcc-c++-4.4.4-13.el6.i686.rpm

posted @ 2011-12-28 16:25  Yineng  阅读(389)  评论(0编辑  收藏  举报
Homepage: www.chenyineng.info
Copyright 2010 - 2014 Yineng Chen. All rights reserved.