macs2: 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/bin/macs2 - from package: macs

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