mafft-nwns: 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 Debian possible default full paths are:

/usr/lib/mafft/bin/mafft-nwns - from package: mafft

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