how to upgrade gcc on centos 6.7

Issues related to applications and software problems
Post Reply
ykbykbykb
Posts: 1
Joined: 2017/04/06 07:39:38

how to upgrade gcc on centos 6.7

Post by ykbykbykb » 2017/04/06 07:47:48

Hi,I got an issue when upgrade my gcc version on CentOS release 6.7 (Final).
Current gcc version is gcc version 4.4.7 20120313 (Red Hat 4.4.7-16) (GCC)
and I want to upgrade to gcc version 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC) , I've tried several methods with the help of google, but all are failed.
for example, I download one package from http://rpm.pbone.net/index.php3/stat/4/ ... 6.rpm.html, and use below command , but it failed...

Code: Select all

yum install /tmp/gcc-4.4.7-17.el6.i686.rpm
Loaded plugins: auto-update-debuginfo, fastestmirror, refresh-packagekit, security
Setting up Install Process
Examining /tmp/gcc-4.4.7-17.el6.i686.rpm: gcc-4.4.7-17.el6.i686
Marking /tmp/gcc-4.4.7-17.el6.i686.rpm as an update to gcc-4.4.7-16.el6.i686
Loading mirror speeds from cached hostfile
http://vault.centos.org/centos/6/os/i386/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: base. Please verify its path and try again
I've no idea about this, is anyone can help, thanks a lot!

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: how to upgrade gcc on centos 6.7

Post by TrevorH » 2017/04/06 08:22:34

CentOS 6.7 hasn't been supported since the release of 6.8. You need to update. Since 6.9 came out yesterday, you should update to that ASAP. To do so you need to run yum update and then reboot when it's complete. Looking at your yum output, it appears that you have enabled some of the repos in /etc/yum.repos.d/CetnOS-Vault.repo and those should all be disabled.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply