export2sam.pl: 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/export2sam.pl - from package: samtools

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