Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I have a RHEL 6 machine, which came with gcc but without g++.
The gcc version is 4.4.4 20100726 (this is what I got from gcc --version).
How can I get g++ working? Currently, the shell just returns "command not found".
You need to install the gcc-c++ package: yum install gcc-c++
yum install gcc-c++
rpm -qa | grep gcc
rpm -qa | grep gc
Required, but never shown