Installing GCC (C++ Compiler and Development Tools)
If gcc and / or g++ and it’s related Development Tools are not installed in your system by default, you can install the latest available from the repositories as follows:
# yum group install 'Development Tools' [on CentOS/RHEL 7/6]
# dnf group install 'Development Tools' [on Fedora 22+ Versions]