How to Install g++ 4.9 on RHEL 7 RC?

Latest response

I'm porting a C++ 11 app to RHEL 7 RC. I'm finding that RHEL 7's g++ 4.8 doesn't have sufficient support for C++ 11 but some or all are implemented in g++ 4.9. What are the steps to install g++ 4.9?

Responses

Hi Robert,

Not sure, but based on what I read at Fedora Forums and other locations, (RHEL 7 built kinda from Fedora 19) it seems the naming conventions for what you are looking for will eventually lead you to this.

yum install gcc-c++

I googled "g++ fedora" and additionally "g++ 'RHEL 7', and looked in the fedora forums, and saw where others were looking for g++ and also linux forums--the same.

In the RHEL 7 rpms location, this is the list of all the rpms,
here is the slightly older version see next paragraph rpm for gcc-c++ from that location, version 4.8.2-3.el7.x86_64

However, that version is not the version you're looking for, consider/evaluate trying this 4.9 version perhaps

Hope this helps, kind regards,
Remmele

How did it go Robert?

I decided to code around the issues that would have been resolved by use of gcc 4.9. I am just too uncomfortable using gcc 4.9 when it's not officially supported by RHEL 7. I don't mind developing with gcc 4.9 but I'm not comfortable with telling my customers that they must install, develop and deploy it.

Glad you have a work around.

RHEL 7 will most likely be released this summer...

yum install gcc-c++

i am not able to install g++ in rhel 7.2 version

hi, i need to upgrade gcc 4.8.5 to 4.9.3 in RHEL 7.2

See this link https://access.redhat.com/solutions/19458 -- and refer to "Red Hat Developer Toolset" under "Comments" at that link as well.

Developer toolset may be your friend - see above article, and the bits under "Comments" at that link as mentioned above.

ADDED/UPDATED: My satellite server (and Red Hat Downloads) have devtoolset-3-gcc-4-9.2-6.2 and also devtoolset-4-gcc-5.2.1-2.2 not sure if rhel7 editions exist, it seems these are rhel6

EDITED/ADDED: Also see this link https://access.redhat.com/documentation/en-US/Red_Hat_Developer_Toolset/4/html/4.0_Release_Notes/DTS4.0_Release.html regarding RHEL 7 editions of developer toolset gcc for RHEL 7

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.