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

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

On Debian possible default full paths are:

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

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