RHEL 6.5 安装 gcc
11 Jan 2017
Reading time ~1 minute
RHEL 6.5 安装 gcc
准备
将 iso 文件下的相关 rpm 包拷贝下来,或者直接 cd 到挂载后的 Packages
目录
安装
注意: 必须按照下列的顺序依次安装
rpm -ivh glibc-common-2.12-1.132.el6.x86_64.rpm
rpm -ivh kernel-headers-2.6.32-431.el6.x86_64.rpm
rpm -ivh libgcc-4.4.7-4.el6.x86_64.rpm
rpm -ivh glibc-2.12-1.132.el6.x86_64.rpm
rpm -ivh libgomp-4.4.7-4.el6.x86_64.rpm
rpm -ivh nscd-2.12-1.132.el6.x86_64.rpm
rpm -ivh glibc-headers-2.12-1.132.el6.x86_64.rpm
rpm -ivh glibc-devel-2.12-1.132.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.7-4.el6.x86_64.rpm
rpm -ivh gcc-4.4.7-4.el6.x86_64.rpm
rpm -ivh libstdc++-4.4.7-4.el6.x86_64.rpm
rpm -ivh libstdc++-devel-4.4.7-4.el6.x86_64.rpm
rpm -ivh gcc-c++-4.4.7-4.el6.x86_64.rpm
验证
which gcc
gcc -v
alcat2008
Dreamer, Practitioner, Incomplete Front-ender