2015-04-22 77 views
0

每當我嘗試在科學linux 6上安裝gcc 4.8時,出現以下錯誤。有誰知道的任何錯誤修正:在科學linux上安裝gcc 4.8時出現錯誤6

[[email protected]]# 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 

編輯:百勝repolist OUTPUT:

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.repos.d/slc6-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo OUTPUT:

--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. 
+0

我相信錯誤是非常簡單的在這裏。你試圖得到一個不再存在的包(因此是404)。你有更新你的資料庫清單嗎? – meneldal

+0

@meneldal我是科學Linux新手,因此我不知道如何更新存儲庫列表。你可以請指導我..我嘗試百勝更新...仍然有同樣的錯誤 –

回答

1
  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 enable devtoolset-2 bash 
    gcc --version 
    
+0

非常感謝。你也可以請我指導我如何在Scientific Linux上安裝gcc 4.8。我嘗試了很多(http://stackoverflow.com/questions/29786528/installing-gcc-on-linux),但沒有幫助 –

+0

嗨..sorry,但我仍然得到相同的錯誤...所以這並沒有幫助 –

+0

向我展示以下命令的結果'yum repolist' – deimus

相關問題