百度下载,安装包:
链接:https://pan.baidu.com/s/1IgBfCCRxGYZ_PPiedad0xQ
提取码:ffff
下载后,建个目录,先解压好安装包!
(两种方法)执行如下命令:
参考方法一(依次安装):
rpm -ivh lib64gmp3-4.3.1-1mdv2010.0.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 mpfr-2.4.1-6.el6.x86_64.rpm
rpm -ivh cpp-4.4.7-4.el6.x86_64.rpm --force
rpm -ivh kernel-headers-2.6.32-431.el6.x86_64.rpm
rpm -ivh glibc-headers-2.12-1.132.el6.x86_64.rpm --nodeps --force
rpm -ivh glibc-devel-2.12-1.132.el6.x86_64.rpm --force --nodeps
rpm -ivh gcc-4.4.7-4.el6.x86_64.rpm --force --nodeps
rpm -ivh libstdc++-devel-4.4.7-4.el6.x86_64.rpm --force --nodeps
rpm -ivh gcc-c++-4.4.7-4.el6.x86_64.rpm --force --nodeps
参考方法二(批量安装):
rpm -ivh *.rpm --nodeps --force
测试安装,结果:
gcc -v
显示,结果:
gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC)
(安装完成)