how to install newer GCC version in CentOS 5.7?

Posted by gkdsp on Server Fault See other posts from Server Fault or by gkdsp
Published on 2011-11-24T01:05:44Z Indexed on 2011/11/24 1:55 UTC
Read the original article Hit count: 646

Filed under:
|

Using CentOS 5.7, how do I install GCC version 4.6? I just installed version 4.4 using

# yum install gcc44

but that version still doesn't support variable length arrays from C99 standard. I don't see a newer version than 4.4 when I type:

[root@host2 /etc]# yum list gcc\*
Excluding Packages in global exclude list
Finished
Installed Packages
gcc.x86_64            4.1.2-51.el5      installed  
gcc-c++.x86_64        4.1.2-51.el5      installed  
gcc-gfortran.x86_64   4.1.2-51.el5      installed  
gcc44.x86_64          4.4.4-13.el5      installed  
Available Packages
gcc-gnat.x86_64       4.1.2-51.el5      system-base
gcc-java.x86_64       4.1.2-51.el5      system-base
gcc-objc.x86_64       4.1.2-51.el5      system-base
gcc-objc++.x86_64     4.1.2-51.el5      system-base
gcc44-c++.x86_64      4.4.4-13.el5      system-base
gcc44-gfortran.x86_64 4.4.4-13.el5      system-base

I wonder if the newer versions of GCC are not available to CentOS because they're deemed not yet reliable/stable enough (?)

Can I download gcc-4.5.3.tar.gz from here:

http://fileboar.com/gcc/releases/gcc-4.5.3/

but then how to install?

© Server Fault or respective owner

Related posts about centos

Related posts about gcc