voms-proxy-init2: 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/voms-proxy-init2 - from package: voms-clients-cpp

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