What would be the easiest way to install gcc 4.7 on a system with CentOS 6.2 ? The refault rpm package contains an older version of gcc.

link|improve this question

75% accept rate
feedback

2 Answers

From what I can see from the gnu gcc, latest stable version is 4.62. The version 4.7 can be downloaded and compiled, more info on the gcc installation.

link|improve this answer
I asked about 4.7 because it is supposed to have some C++11 features that I need (porting from Clang). – TomA Jan 22 at 19:01
So apart from compiling from source there is no, say, website that would have some rpms I could use? – TomA Jan 22 at 19:02
Not that I'm aware of, but I'm not very knowledgeable on the topic. RPM repository typicly include the RPM only in it's stable form. – bbaja42 Jan 22 at 20:28
feedback

One way of achieving this would be to fetch src RPMs from the fedora repositories and recompile them for your target system.
Fedora 17 and later provide gcc 4.7

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.