yum如何安装特定版本的gcc_yum安装gcc

本文详细记录了通过yum在Linux环境中安装特定版本GCC 4.8.2的过程,包括依赖包的解决和安装步骤。过程中遇到了HTTP错误403,但最终通过尝试其他镜像成功安装了所需版本的GCC及其依赖。
摘要由CSDN通过智能技术生成

[root@localhost Jorcen]# yum -y install gccLoaded plugins: fastestmirror, langpacks, refresh-packagekit

livna| 1.3 kB 00:00rpmfusion-free-updates | 3.3 kB 00:00rpmfusion-nonfree-updates | 3.3 kB 00:00updates/19/x86_64/metalink | 4.0 kB 00:00updates| 4.9 kB 00:00updates/19/x86_64/primary_db | 11 MB 00:54(1/3): rpmfusion-nonfree-updates/19/x86_64/primary_db | 246 kB 00:01(2/3): updates/19/x86_64/updateinfo | 1.2 MB 00:04(3/3): updates/19/x86_64/pkgtags | 1.0 MB 00:19Loading mirror speeds from cached hostfile*fedora: mirrors.oschina.net* livna: ftp-stud.fht-esslingen.de* rpmfusion-free: mirror.bjtu.edu.cn* rpmfusion-free-updates: mirror.bjtu.edu.cn* rpmfusion-nonfree: mirror.bjtu.edu.cn* rpmfusion-nonfree-updates: mirror.bjtu.edu.cn*updates: mirrors.oschina.net

Resolving Dependencies-->Running transaction check---> Package gcc.x86_64 0:4.8.2-7.fc19 will be installed--> Processing Dependency: cpp = 4.8.2-7.fc19 for package: gcc-4.8.2-7.fc19.x86_64--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.8.2-7.fc19.x86_64--> Processing Dependency: libmpc.so.3()(64bit) for package: gcc-4.8.2-7.fc19.x86_64-->Running transaction check---> Package cpp.x86_64 0:4.8.2-7.fc19 will be installed---> Package glibc-devel.x86_64 0:2.17-20.fc19 will be installed--> Processing Dependency: glibc-headers = 2.17-20.fc19 for package: glibc-devel-2.17-20.fc19.x86_64--> Processing Dependency: glibc-headers for package: glibc-devel-2.17-20.fc19.x86_64---> Package libmpc.x86_64 0:1.0.1-1.fc19 will be installed-->Running transaction check---> Package glibc-headers.x86_64 0:2.17-20.fc19 will be installed-->Finished Dependency Resolution

Dependencies Resolved======================================================================================================================================================Package Arch Version Repository Size======================================================================================================================================================Installing:gcc x86_64 4.8.2-7.fc19 updates 16M

Installingfordependencies:cpp x86_64 4.8.2-7.fc19 updates 5.9M

glibc-devel x86_64 2.17-20.fc19 updates 1.0M

glibc-headers x86_64 2.17-20.fc19 updates 645k

libmpc x86_641.0.1-1.fc19 fedora 49k

Transaction Summary======================================================================================================================================================Install1 Package (+4Dependent packages)

Total download size:24M

Installed size:55M

Downloading packages:cpp-4.8.2-7.fc19.x86_64.rpm FAILED ] 43 kB/s | 251 kB 00:09:16ETA

http://mirror.nus.edu.sg/fedora/linux/updates/19/x86_64/cpp-4.8.2-7.fc19.x86_64.rpm: [Errno 14] HTTP Error 403 - ForbiddenkB/s | 251 kB 00:09:16 ETA

Trying other mirror.

glibc-headers-2.17-20.fc19.x86 FAILED ] 49 kB/s | 330 kB 00:08:02ETA

http://mirror.nus.edu.sg/fedora/linux/updates/19/x86_64/glibc-headers-2.17-20.fc19.x86_64.rpm: [Errno 14] HTTP Error 403 - Forbidden kB 00:08:02 ETA

Trying other mirror.

(1/5): libmpc-1.0.1-1.fc19.x86_64.rpm | 49 kB 00:00:07(2/5): glibc-devel-2.17-20.fc19.x86_64.rpm | 1.0 MB 00:00:13(3/5): cpp-4.8.2-7.fc19.x86_64.rpm | 5.9 MB 00:00:30(4/5): glibc-headers-2.17-20.fc19.x86_64.rpm | 645 kB 00:00:30(5/5): gcc-4.8.2-7.fc19.x86_64.rpm | 16 MB 00:03:45

------------------------------------------------------------------------------------------------------------------------------------------------------Total107 kB/s | 24 MB 00:03:45Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

Installing : libmpc-1.0.1-1.fc19.x86_64 1/5Installing :cpp-4.8.2-7.fc19.x86_64 2/5Installing : glibc-headers-2.17-20.fc19.x86_64 3/5Installing : glibc-devel-2.17-20.fc19.x86_64 4/5Installing :gcc-4.8.2-7.fc19.x86_64 5/5Verifying :cpp-4.8.2-7.fc19.x86_64 1/5Verifying : glibc-headers-2.17-20.fc19.x86_64 2/5Verifying : glibc-devel-2.17-20.fc19.x86_64 3/5Verifying :gcc-4.8.2-7.fc19.x86_64 4/5Verifying : libmpc-1.0.1-1.fc19.x86_64 5/5Installed:gcc.x86_64 0:4.8.2-7.fc19

Dependency Installed:cpp.x86_64 0:4.8.2-7.fc19 glibc-devel.x86_64 0:2.17-20.fc19 glibc-headers.x86_64 0:2.17-20.fc19 libmpc.x86_64 0:1.0.1-1.fc19

Complete!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值