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

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

On Debian possible default full paths are:

/usr/bin/infocmp - from package: ncurses-bin

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