[英]Install specific version of gcc using yum
How do I ask yum
to install specific version of gcc
? 如何让
yum
安装特定版本的gcc
? When I run yum install gcc
on fc17 I get gcc 4.7.2. 当我在fc17上运行
yum install gcc
,我得到了gcc 4.7.2。 My software compiles just fine using this version of gcc. 我的软件使用这个版本的gcc编译得很好。 Recently I was forced to move to fc18, when I run
yum install gcc
I get gcc 4.8, and my software fails to compile with this version of gcc. 最近我被迫转到fc18,当我运行
yum install gcc
我得到gcc 4.8,我的软件无法用这个版本的gcc编译。 Since so I'm forced to manually download the gcc-4.7.2.fc18.rpm and to resolve dependencies manually. 因此我不得不手动下载gcc-4.7.2.fc18.rpm并手动解决依赖关系。 Is there a way to ask
yum
to install a specific version of gcc? 有没有办法让
yum
安装特定版本的gcc?
You can specify the version of the package to install along with the name, eg "gcc-4.7.2". 您可以指定要与名称一起安装的软件包的版本,例如“gcc-4.7.2”。 But that won't help since 4.7.2 is not in the F18 repositories;
但这无济于事,因为4.7.2不在F18资料库中; fix your code .
修复你的代码 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.