C++ Compiler g++ Does not Work or No Compiler Found CentOS/RHEL

Issue

checking if we have a C++ compiler... no
configure: error: C++ compiler g++ does not work or no compiler found

Probably means you’re missing the g++ compiled at all, which isn’t installed.

Solution

sudo yum -y install gcc gcc-c++
# yum list installed | grep gcc
gcc.x86_64                           4.8.5-44.el7                   @base
gcc-c++.x86_64                       4.8.5-44.el7                   @base
libgcc.x86_64                        4.8.5-44.el7                   @anaconda

And that’s it.

Leave a Comment

Required fields are marked *