首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在科学linux 6上安装gcc 4.8时出错

在科学linux 6上安装gcc 4.8时出错
EN

Stack Overflow用户
提问于 2015-04-22 07:01:52
回答 1查看 2K关注 0票数 0

每当我试图在科学linux 6上安装gcc 4.8时,我就会得到以下错误。是否有人知道错误的修补程序:

代码语言:javascript
复制
[root@ABC]# yum install libstdc++-devel.i686
Loaded plugins: refresh-packagekit, security
Setting up Install Process
http://people.centos.org/tru/devtools-2/6.6/x86_64/RPMS/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: testing-devtools-2-centos-6.6. Please verify its path and try again

编辑: yum repolist输出:

代码语言:javascript
复制
Loaded plugins: refresh-packagekit, security
http://people.centos.org/tru/devtools-2/6.6/x86_64/RPMS/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://people.centos.org/tru/devtools-2/6.6/x86_64/RPMS/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
repo id                       repo name                                      status
sl                            Scientific Linux 6.6 - x86_64                  6,665
sl-security                   Scientific Linux 6.6 - x86_64 - security updat   420
sl6x                          Scientific Linux 6x - x86_64                   6,665
sl6x-security                 Scientific Linux 6x - x86_64 - security update   420
testing-devtools-2-centos-6.6 testing 2 devtools for CentOS 6.6                  0
repolist: 14,170

编辑: wget -O /etc/yum.Storage.d/slc6-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo输出:

代码语言:javascript
复制
--2015-04-22 13:05:01--  http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo
Resolving linuxsoft.cern.ch... 2001:1458:201:95::100:13, 2001:1458:201:95::100:14, 2001:1458:201:95::100:d, ...
Connecting to linuxsoft.cern.ch|2001:1458:201:95::100:13|:80... failed: Connection timed out.
Connecting to linuxsoft.cern.ch|2001:1458:201:95::100:14|:80... failed: Connection timed out.
Connecting to linuxsoft.cern.ch|2001:1458:201:95::100:d|:80... failed: Connection timed out.
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-04-22 07:15:11

  1. 在主机上安装Devtoolset-repo wget -O /etc/yum.repos.d/slc6-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo
  2. 安装devtoolset yum install devtoolset-2
  3. 测试安装环境 scl启用devtoolset-2 bash gcc -版本
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29790076

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档