maq2sam-long: 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/maq2sam-long - from package: samtools

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