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

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