感谢支持
我们一直在努力

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


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

赞(0) 打赏
转载请注明出处:服务器评测 » Install GCC into CentOS (为CentOS安装GCC)
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏