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

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