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

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