[CentOS] install latest gcc/g++ dev tools on centos

Wed Mar 4 00:17:42 UTC 2015
John R Pierce <pierce at hogranch.com>

On 3/3/2015 4:13 PM, John R Pierce wrote:
> On 2/22/2015 4:22 PM, Adekoya Adekunle wrote:
>> How can I install the latest version of gcc/g++ development tools on my
>> centos ?
>> I have version 4.1.* on the machine.
>
> centos 6 cames with gcc 4.4.7, centos 7 uses 4.8.2.    yum update 
> should get you the latest supported release.
>
> what version of centos do you have?   gcc 4.1 is fairly old (2006-2007)
>
> if you need newer versions of gcc and support than your version of 
> CentOS supports, the only way to get them woujld be to build your own 
> in to run in  an alternate directory, such as /usr/local/gcc49, rather 
> than replace the standard versions, otherwise you'll likely break 
> things that depend on the standard version for your OS.. 

ok, gcc 4.1.2 was bundled with CentOS 5 (I forgot I had one centos 5 
legacy test/dev system left alive)...     you can yum install gcc44 
gcc44-c++ to get 4.4.7, is that new enough?       note this installs the 
compiler as /usr/bin/gcc44 and g++44 so you'll need to update any of 
your build scripts to specify gcc44 and/or g++44 to use this newer version.



-- 
john r pierce                                      37N 122W
somewhere on the middle of the left coast