g++34: 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/g++34 - from package: compat-gcc-34-c++

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