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

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