kmag: 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 CentOS possible default full paths are:

/usr/bin/kmag - from package: kdeaccessibility

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/kmag - from package: kmag

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