x86_64-redhat-linux-g++: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/bin/x86_64-redhat-linux-g++ - from package: gcc-c++

You may install the required package with command yum install {package}
Error in other languages:
x86_64-redhat-linux-g++: bevel nie gevind nie
x86_64-redhat-linux-g++: comandă negăsită
x86_64-redhat-linux-g++: comando não encontrado
x86_64-redhat-linux-g++: commande introuvable
x86_64-redhat-linux-g++: command not found
x86_64-redhat-linux-g++: käsku ei ole
x86_64-redhat-linux-g++: không tìm thấy lệnh
x86_64-redhat-linux-g++: komanda nerasta
x86_64-redhat-linux-g++: Kommando nicht gefunden.
x86_64-redhat-linux-g++: kommandot finns inte
x86_64-redhat-linux-g++: komut yok
x86_64-redhat-linux-g++: nie znaleziono polecenia
x86_64-redhat-linux-g++: níor aimsíodh an t-ordú
x86_64-redhat-linux-g++: no se encontró la orden
x86_64-redhat-linux-g++: no s'ha trobat l'ordre
x86_64-redhat-linux-g++: opdracht niet gevonden
x86_64-redhat-linux-g++: parancs nem található
x86_64-redhat-linux-g++: perintah tidak ditemukan
x86_64-redhat-linux-g++: príkaz nenájdený
x86_64-redhat-linux-g++: příkaz nenalezen
x86_64-redhat-linux-g++: команда не найдена
x86_64-redhat-linux-g++: командата не е открита
x86_64-redhat-linux-g++: 命令找不到
x86_64-redhat-linux-g++: コマンドが見つかりません