bam2hits: 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/bam2hits - from package: mmseq

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