【转载·】Linux yum 安装 gcc 、gcc-c++
使用如下两个命令就可把gcc,gcc-c++统统安装
- yum -y install gcc
- yum -y install gcc-c++
安装gcc
安装gcc-c++
'
安装日志:
- [root@localhost ~]# yum -y install gcc
- 已加载插件:fastestmirror, refresh-packagekit, security
- 设置安装进程
- Loading mirror speeds from cached hostfile
- * base: mirrors.aliyun.com
- * extras: mirrors.aliyun.com
- * updates: mirrors.aliyun.com
- 解决依赖关系
- --> 执行事务检查
- ---> Package gcc.x86_64 0:4.4.7-18.el6 will be 安装
- --> 处理依赖关系 libgomp = 4.4.7-18.el6,它被软件包 gcc-4.4.7-18.el6.x86_64 需要
- --> 处理依赖关系 cpp = 4.4.7-18.el6,它被软件包 gcc-4.4.7-18.el6.x86_64 需要
- --> 处理依赖关系 libgcc >= 4.4.7-18.el6,它被软件包 gcc-4.4.7-18.el6.x86_64 需要
- --> 处理依赖关系 cloog-ppl >= 0.15,它被软件包 gcc-4.4.7-18.el6.x86_64 需要
- --> 执行事务检查
- ---> Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be 安装
- --> 处理依赖关系 libppl_c.so.2()(64bit),它被软件包 cloog-ppl-0.15.7-1.2.el6.x86_64 需要
- --> 处理依赖关系 libppl.so.7()(64bit),它被软件包 cloog-ppl-0.15.7-1.2.el6.x86_64 需要
- ---> Package cpp.x86_64 0:4.4.7-18.el6 will be 安装
- --> 处理依赖关系 libmpfr.so.1()(64bit),它被软件包 cpp-4.4.7-18.el6.x86_64 需要
- ---> Package libgcc.x86_64 0:4.4.7-17.el6 will be 升级
- ---> Package libgcc.x86_64 0:4.4.7-18.el6 will be an update
- ---> Package libgomp.x86_64 0:4.4.7-17.el6 will be 升级
- ---> Package libgomp.x86_64 0:4.4.7-18.el6 will be an update
- --> 执行事务检查
- ---> Package mpfr.x86_64 0:2.4.1-6.el6 will be 安装
- ---> Package ppl.x86_64 0:0.10.2-11.el6 will be 安装
- --> 完成依赖关系计算
- 依赖关系解决
- ===============================================================================================================================================================================================
- 软件包 架构 版本 仓库 大小
- ===============================================================================================================================================================================================
- 正在安装:
- gcc x86_64 4.4.7-18.el6 base 10 M
- 为依赖而安装:
- cloog-ppl x86_64 0.15.7-1.2.el6 base 93 k
- cpp x86_64 4.4.7-18.el6 base 3.7 M
- mpfr x86_64 2.4.1-6.el6 base 157 k
- ppl x86_64 0.10.2-11.el6 base 1.3 M
- 为依赖而更新:
- libgcc x86_64 4.4.7-18.el6 base 103 k
- libgomp x86_64 4.4.7-18.el6 base 134 k
- 事务概要
- ===============================================================================================================================================================================================
- Install 5 Package(s)
- Upgrade 2 Package(s)
- 总下载量:16 M
- 下载软件包:
- (1/7): cloog-ppl-0.15.7-1.2.el6.x86_64.rpm | 93 kB 00:00
- (2/7): cpp-4.4.7-18.el6.x86_64.rpm | 3.7 MB 00:01
- (3/7): gcc-4.4.7-18.el6.x86_64.rpm | 10 MB 00:03
- (4/7): libgcc-4.4.7-18.el6.x86_64.rpm | 103 kB 00:00
- (5/7): libgomp-4.4.7-18.el6.x86_64.rpm | 134 kB 00:00
- (6/7): mpfr-2.4.1-6.el6.x86_64.rpm | 157 kB 00:00
- (7/7): ppl-0.10.2-11.el6.x86_64.rpm | 1.3 MB 00:00
- -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- 总计 2.2 MB/s | 16 MB 00:07
- warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
- Retrieving key from http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-6
- Importing GPG key 0xC105B9DE:
- Userid: "CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>"
- From : http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-6
- 运行 rpm_check_debug
- 执行事务测试
- 事务测试成功
- 执行事务
- 正在升级 : libgcc-4.4.7-18.el6.x86_64 1/9
- 正在安装 : ppl-0.10.2-11.el6.x86_64 2/9
- 正在安装 : cloog-ppl-0.15.7-1.2.el6.x86_64 3/9
- 正在安装 : mpfr-2.4.1-6.el6.x86_64 4/9
- 正在安装 : cpp-4.4.7-18.el6.x86_64 5/9
- 正在升级 : libgomp-4.4.7-18.el6.x86_64 6/9
- 正在安装 : gcc-4.4.7-18.el6.x86_64 7/9
- 清理 : libgcc-4.4.7-17.el6.x86_64 8/9
- 清理 : libgomp-4.4.7-17.el6.x86_64 9/9
- Verifying : cpp-4.4.7-18.el6.x86_64 1/9
- Verifying : libgomp-4.4.7-18.el6.x86_64 2/9
- Verifying : mpfr-2.4.1-6.el6.x86_64 3/9
- Verifying : libgcc-4.4.7-18.el6.x86_64 4/9
- Verifying : gcc-4.4.7-18.el6.x86_64 5/9
- Verifying : ppl-0.10.2-11.el6.x86_64 6/9
- Verifying : cloog-ppl-0.15.7-1.2.el6.x86_64 7/9
- Verifying : libgcc-4.4.7-17.el6.x86_64 8/9
- Verifying : libgomp-4.4.7-17.el6.x86_64 9/9
- 已安装:
- gcc.x86_64 0:4.4.7-18.el6
- 作为依赖被安装:
- cloog-ppl.x86_64 0:0.15.7-1.2.el6 cpp.x86_64 0:4.4.7-18.el6 mpfr.x86_64 0:2.4.1-6.el6 ppl.x86_64 0:0.10.2-11.el6
- 作为依赖被升级:
- libgcc.x86_64 0:4.4.7-18.el6 libgomp.x86_64 0:4.4.7-18.el6
- 完毕!
- [root@localhost ~]# yum -y install gcc-c++
- 已加载插件:fastestmirror, refresh-packagekit, security
- 设置安装进程
- Loading mirror speeds from cached hostfile
- * base: mirrors.aliyun.com
- * extras: mirrors.aliyun.com
- * updates: mirrors.aliyun.com
- 解决依赖关系
- --> 执行事务检查
- ---> Package gcc-c++.x86_64 0:4.4.7-18.el6 will be 安装
- --> 处理依赖关系 libstdc++-devel = 4.4.7-18.el6,它被软件包 gcc-c++-4.4.7-18.el6.x86_64 需要
- --> 处理依赖关系 libstdc++ = 4.4.7-18.el6,它被软件包 gcc-c++-4.4.7-18.el6.x86_64 需要
- --> 执行事务检查
- ---> Package libstdc++.x86_64 0:4.4.7-17.el6 will be 升级
- ---> Package libstdc++.x86_64 0:4.4.7-18.el6 will be an update
- ---> Package libstdc++-devel.x86_64 0:4.4.7-18.el6 will be 安装
- --> 完成依赖关系计算
- 依赖关系解决
- ===============================================================================================================================================================================================
- 软件包 架构 版本 仓库 大小
- ===============================================================================================================================================================================================
- 正在安装:
- gcc-c++ x86_64 4.4.7-18.el6 base 4.7 M
- 为依赖而安装:
- libstdc++-devel x86_64 4.4.7-18.el6 base 1.6 M
- 为依赖而更新:
- libstdc++ x86_64 4.4.7-18.el6 base 295 k
- 事务概要
- ===============================================================================================================================================================================================
- Install 2 Package(s)
- Upgrade 1 Package(s)
- 总下载量:6.6 M
- 下载软件包:
- (1/3): gcc-c++-4.4.7-18.el6.x86_64.rpm | 4.7 MB 00:01
- (2/3): libstdc++-4.4.7-18.el6.x86_64.rpm | 295 kB 00:00
- (3/3): libstdc++-devel-4.4.7-18.el6.x86_64.rpm | 1.6 MB 00:00
- -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- 总计 2.1 MB/s | 6.6 MB 00:03
- 运行 rpm_check_debug
- 执行事务测试
- 事务测试成功
- 执行事务
- 正在升级 : libstdc++-4.4.7-18.el6.x86_64 1/4
- 正在安装 : libstdc++-devel-4.4.7-18.el6.x86_64 2/4
- 正在安装 : gcc-c++-4.4.7-18.el6.x86_64 3/4
- 清理 : libstdc++-4.4.7-17.el6.x86_64 4/4
- Verifying : gcc-c++-4.4.7-18.el6.x86_64 1/4
- Verifying : libstdc++-devel-4.4.7-18.el6.x86_64 2/4
- Verifying : libstdc++-4.4.7-18.el6.x86_64 3/4
- Verifying : libstdc++-4.4.7-17.el6.x86_64 4/4
- 已安装:
- gcc-c++.x86_64 0:4.4.7-18.el6
- 作为依赖被安装:
- libstdc++-devel.x86_64 0:4.4.7-18.el6
- 作为依赖被升级:
- libstdc++.x86_64 0:4.4.7-18.el6
- 完毕!
- [root@localhost ~]#
【转载·】Linux yum 安装 gcc 、gcc-c++的更多相关文章
- linux yum 安装wget、gcc、ifconfig、vim、setup
安装wgetyum -y install wget安装gcc c语言编译器yum -y install gcc安装ifconfigyum -y install net-tools.x86_64安装vi ...
- [转载]linux上安装oracle
原文地址:linux上安装oracle作者:天涯恨客 1.创建oinstall组 [root@xieqing ~]# groupadd oinstall 创建dba组 [root@xieqing ~] ...
- Linux yum安装和源码安装
转载注明出处:原文地址 Linux Yum 在线安装 在线:Yum配置地址:/etc/yum.repos.d/CentOS-Base.repo 离线:光盘搭建Yum源 挂载光盘 使在线Yum源失效:m ...
- Linux yum安装
一.安装Apache软件步骤:1.安装 yum install httpd 2.启动,关闭 重启等命令systemctl start httpd.service(启动)systemctl restar ...
- linux yum 安装mysql
1.安装查看有没有安装过: yum list installed MySQL* rpm -qa | grep mysql* 查看有没有安装包: yum list mysql* 安装mysql客户端: ...
- Linux yum安装java环境
1.jdk 1.8 #系统版本 [root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) #安装 ...
- Linux Yum 安装JDK
1.查看CentOS自带JDK是否已安装. 输入:yum list installed |grep java. 2.若有自带安装的JDK,如何卸载CentOS系统自带Java环境? 卸载JDK相关文件 ...
- linux yum安装jdk
>>>>>>>>>> 实例: yum安装jdk 1.查看当前的jdk版本,并卸载 (注1:rpm -qa ###解释:查询所有安装的rpm包 ...
- Linux yum安装MySQL5.7
一.安装配置MySQL的yum源 # 安装MySQL的yum源,下面是RHEL6系列的下载地址 rpm -Uvh http://dev.mysql.com/get/mysql-community-re ...
随机推荐
- CF949B A Leapfrog in the Array 思维题,推理
题意: Dima是一名初级程序员. 在他的工作中,他经常不断地重复以下操作:从数组中删除每个第二个元素. 有一天,他对这个问题的解决方案感到厌倦,他提出了以下华丽的算法. 假设有一长度为2n的数组,最 ...
- Git的选项参数
git的选项参数 MisSa@DESKTOP-PIQ06QO MINGW64 ~ $ git usage: git [--version] [--help] [-C <path>] [-c ...
- BZOJ 3282 Link Cut Tree (LCT)
题目大意:维护一个森林,支持边的断,连,修改某个点的权值,求树链所有点点权的异或和 洛谷P3690传送门 搞了一个下午终于明白了LCT的原理 #include <cstdio> #incl ...
- MyEclipse背景与字体大小和xml文件中字体大小调整
1.打开window / Preference,弹出Preference面板 2.展开General标签,选中Editors选项,展开. 3.选中 Text Editors,右边出现TestEdito ...
- qt quick中qml编程语言
Qt QML 入门 — 使用C++定义QML类型 发表于 2013 年 3 月 11 日 注册C++类 注册可实例化的类型 注册不实例化的QML类型 附带属性 注册C++类 注册可实例化的类型 如 ...
- PatentTips - Object-oriented processor architecture and operating method
BACKGROUND OF THE INVENTION The present invention relates to processors and computer systems. More s ...
- [TypeScript] Generic Functions, class, Type Inference and Generics
Generic Fucntion: For example we have a set of data and an function: interface HasName { name: strin ...
- UI_UIImagePickerController(读取图片)
创建图片 #pragma mark - 创建 photoImageView - (void)createphotoImageView { self.photoImageView = [[UIImage ...
- m_Orchestrate learning system---四、多看参考文档很多事情很轻松就解决了
m_Orchestrate learning system---四.多看参考文档很多事情很轻松就解决了 一.总结 一句话总结:多看参考文档啊 1.面包屑导航如何实现? 1 <ol class=& ...
- ThinkPHP5.0框架开发--第11章 TP5.0 杂项
ThinkPHP5.0框架开发--第11章 TP5.0 杂项 第11章 TP5.0 杂项 =============================================== 今日学习 1. ...