Written by James McDonald

January 9, 2015

Download the debian WatchOCR package from http://sourceforge.net/projects/watchocr/

Extract the files instruction here ==> http://www.g-loaded.eu/2008/01/28/how-to-extract-rpm-or-deb-packages/

# 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 rpm.pbone.net

Total files number: 1

Site Filename Distribution File size
ftp.pbone.net 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

 

 

 

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

Squarespace Image Export

To gain continued access to your Squarespace website images after cancelling your subscription you have several...

MySQL 8.x GRANT ALL STATEMENT

-- CREATE CREATE USER 'tgnrestoreuser'@'localhost' IDENTIFIED BY 'AppleSauceLoveBird2024'; GRANT ALL PRIVILEGES ON...

Exetel Opt-Out of CGNAT

If your port forwards and inbound and/or outbound site-to-site VPN's have failed when switching to Exetel due to their...