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

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