linux手动RPM安装gcc,g++
# linux手动RPM安装gcc,g++
# 一、安装前准备
首先到http://vault.centos.org/6.5/os/x86_64/Packages/下载用到的rpm包,包括:
- cloog-ppl-0.15.7-1.2.el6.x86_64.rpm
- cpp-4.4.7-4.el6.x86_64.rpm
- gcc-4.4.7-4.el6.x86_64.rpm
- gcc-c++-4.4.7-4.el6.x86_64.rpm
- glibc-devel-2.12-1.132.el6.x86_64.rpm
- glibc-headers-2.12-1.132.el6.x86_64.rpm
- kernel-headers-2.6.32-431.el6.x86_64.rpm
- libstdc++-devel-4.4.7-4.el6.x86_64.rpm
- mpfr-2.4.1-6.el6.x86_64.rpm
- ppl-0.10.2-11.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 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 --force
rpm -ivh glibc-devel-2.12-1.132.el6.x86_64.rpm --force
rpm -ivh gcc-4.4.7-4.el6.x86_64.rpm --force
rpm -ivh libstdc++-devel-4.4.7-4.el6.x86_64.rpm
rpm -ivh gcc-c++-4.4.7-4.el6.x86_64.rpm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
说明:--force
参数是试用于冲突时候强制替换的,不一定都需要。
# 三、验证
安装完成后验证:
gcc -v
1
参考资料:
1、linux手动RPM安装gcc,g++,纷踵,简书
上次更新: 2020/06/11, 15:06:00
- 01
- Activiti使用手册(4)- Bpmn2规范06-11
- 03
- CentOS 安装配置 Nginx06-11