Installing g++ 5 on Amazon Linux

Lukas Palmer picture Lukas Palmer · Jul 4, 2016 · Viewed 12.4k times · Source

I'm trying to install g++ 5.x on an EC2 instance running Amazon Linux; in Amazon's central repository the latest version is 4.8.3. What configuration to can I make to allow yum to find a newer gcc-c++ package?

console log

Answer

OronNavon picture OronNavon · Nov 4, 2018

Late to the party, but for those like me:

sudo yum install gcc72 gcc72-c++