Nick <nick(dot)uebelhor(at)noaa(dot)gov> writes:
> 'g++' or g++ says -bash g++: command not found
So you haven't got it installed.
> distro is red hat
"Red Hat" is pretty darn nonspecific, but on recent Fedora g++ is
part of the gcc-c++ package.
regards, tom lane