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

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

On Debian possible default full paths are:

/usr/bin/gocr - from package: gocr

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