Getting WatchOCR Running on Fedora21

Written by James McDonald

January 9, 2015

Download the debian WatchOCR package from

Extract the files instruction here ==>

# unpack the deb
ar vx package.deb

# untar the data.tar.gz 
tar xvf data.tar.gz

put the watchocr and img2pdf programs in your path e.g. /usr/local/bin

The package depends on the following cuneiform (<= 0.8.0), exactimage, gs, unpaper, libtiff-tools, sun-java6-jdk, ant, unzip, aspell-en

yum install gs unpaper libtiff-tools cuneiform ant unzip aspell-en (this worked)

Download the exactimage src rpm from the latest version of Fedora you can find

This is the one I got from

Total files number: 1

Site Filename Distribution File size exact-image-0.8.9-3.1.src.rpm Fedora 19 367067

you will need to resolve dependency problems when using rpmbuild just yum install all the libraries it complains about

# not all these will install as they aren't all valid
# fedora packages.
# but enough installed to let me compile the exact-image src rpm
yum install libexpat-devel libjasper-devel liblcms-devel libpng-devel libtiff-devel lua-devel pkg-config python-devel swig libexpat-devel liblcms-devel OpenEXR.x86_64 libpng OpenEXR.x86_64 freetype lcms libtiff python2 python libIex libIlmImf

Once you have the deps installed build the src rpm install it.

rpmbuild --rebuild exact-image-0.8.9-3.1.src.rpm
yum localinstall /home/jmcd/rpmbuild/RPMS/x86_64/exact-image-0.8.9-3.1.x86_64.rpm





Submit a Comment

Your email address will not be published.

You May Also Like…

PHP Iterators

Just came across a Youtube talk "Iterators in PHP" by Jake Smith published in 2014 that steps through the many...

PHP array_map Multiple Arrays

array_map can take multiple arrays. I like how it starts mapping through them starting at the first element of each...