How to install G++ on Amazon's Linux AMI
We all know how popular and powerful yum has gotten over recent years for searching and installing common services, programs and libraries.
Today I was attempting to compile a program from source on a brand new instance and needed to install the GCC compiler, so I simply used yum to install gcc....
yum install gcc
This installed the GCC compilier, along with any dependencies and standard kernel headers. Unfortunatley, when I ran my make command, it complained about not finding g++: command not found. I tried using yum to find g++, but neither of the following commands turned in any results:
yum search g++ yum search cpp
Finally after some research, I found the proper yum command:
yum search gcc-c++ > gcc-c++.x86_64 : C++ support for GCC






0%
Thanks for the tip. Exactly what I needed. Also had a fresh Amazon Linux ami with only gcc installed and was trying to compile a program from source. Tried to yum install a bunch of c++ compiler and even g++ and none of them were found. Never thought of searching for the exact package name