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

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/nasm - from package: nasm

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