Steg Verner
Steg Verner

Reputation: 913

Error while installing gcc 4.8 on scientific linux 6

Whenever I try to install gcc 4.8 on scientific linux 6 I get the following error. Does anyone know any fix for the error:

[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

EDIT: yum 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

EDIT: 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.

Upvotes: 0

Views: 2045

Answers (1)

deimus
deimus

Reputation: 9893

  1. Install the Devtoolset-repo on your host

    wget -O /etc/yum.repos.d/slc6-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo

  2. Install the devtoolset yum install devtoolset-2
  3. Test installed environment

    scl enable devtoolset-2 bash 
    gcc --version
    

Upvotes: 1

Related Questions