hocr command not found

In this troubleshooting guide we learn how to fix hocr command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

hocr: command not found

or when using sudo you get the following error message

sudo: hocr: command not found

Solutions to hocr: command not found

How To Fix hocr: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu hocr is provided by libhocr0 package.

libhocr0 is:

Libhocr is an Hebrew OCR (Optical character recognition) library written in C/C++.

This package contains the libhocr library and the hocr command line utility, which can process PBM file formats

To fix this problem, we can install more using the command below.

sudo apt-get -y install libhocr0

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install libhocr0.

sudo apt -y install libhocr0

Or if you have aptitude installed you can use the following command.

sudo aptitude install libhocr0

Summary

In this tutorial we learn how to fix hocr command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.