2

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.0/50votes
Voting statistics:
RatePercentageVotes
50%0
40%0
30%0
20%0
10%0
Click to share thisClick to share this