赞
踩
1.安装环境:CentOS-6.8
2.在这里顺便提一下在线安装和卸载:
a).在线安装:yum install gcc
b).卸载:yum remove gcc
3.需要的下载rpm包如下图所示:
4.下载网址:ftp://mirror.switch.ch/pool/4/mirror/scientificlinux/6.8/x86_64/os/Packages/
5.或者点击此链接:http://pan.baidu.com/s/1hrNlh7u (此链接包含所有rpm包)提取密码: wtcm
6.按顺序安装,如果安装过程中显示already install不需要管直接按顺序安装即可
(1.)rpm -ivh ppl-0.10.2-11.el6.x86_64.rpm
(2.)rpm -ivh cloog-ppl-0.15.7-1.2.el6.x86_64.rpm
(3.)rpm -ivh mpfr-2.4.1-6.el6.x86_64.rpm
(4.)rpm -ivh cpp-4.4.7-17.el6.x86_64.rpm
(5.)rpm -ivh kernel-headers-2.6.32-642.el6.x86_64.rpm
(6.)rpm -ivh glibc-headers-2.12-1.192.el6.x86_64.rpm
(7.)rpm -ivh glibc-devel-2.12-1.192.el6.x86_64.rpm
(8.)rpm -ivh libgomp-4.4.7-17.el6.x86_64.rpm
(9.)rpm -ivh gcc-4.4.7-17.el6.x86_64.rpm --nodeps(如果执行此句有错,请在后面加上--nodeps)
(10.)rpm -ivh libstdc++-devel-4.4.7-17.el6.x86_64.rpm
(11.)rpm -ivh gcc-c++-4.4.7-17.el6.x86_64.rpm
7.安装成功后查看版本:gcc -v
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。