magics-config: 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/magics-config - from package: libmagics++-dev

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