Installing Tesseract OCR 4.0 on CentOS 6

xkcd: compiling - https://xkcd.com/303/Tesseract OCR package is available for CentOS 6 via EPEL yum repository, but unfortunately, at the time of writing this article, the latest available Tesseract version in EPEL is 3.0.4.

Installing Tesseract 4.0 from source is possible, but with some extra effort as CentOS 6 doesn't come with Leptonica 1.77, which is required by Tesseract 4.0, nor it comes with autoconf-archive package (which was orphaned in EPEL), nor it comes with GCC that supports C++11.

So far, things don't look promising but rest assured, it's not the end of the world Smile