Tesseract on Red Hat

3,224 views
Skip to first unread message

Phil R

unread,
Apr 16, 2012, 3:06:26 PM4/16/12
to isla...@googlegroups.com
Is anyone running Tesseract on Red Hat?  I'm looking through the docs at  http://code.google.com/p/tesseract-ocr/  and it says they're testing on ubuntu and generically say that it should work on all recent linux versions.

I started going through the install process and I'm getting some unavailable packages, specifically libpng12-dev and libjpeg62-dev.

Art W Rhyno

unread,
Apr 16, 2012, 7:25:04 PM4/16/12
to isla...@googlegroups.com
> I'm getting some unavailable packages, specifically libpng12-dev and libjpeg62-dev
 
Hi,
 
I think Red Hat will be fine if you leave out the numbers, i.e.:
 
sudo yum install libpng-devel libjpeg-devel
 
art
---
Art Rhyno
Systems Librarian
University of Windsor

Phil Redmon

unread,
Apr 17, 2012, 11:42:42 AM4/17/12
to isla...@googlegroups.com
Great, that worked. I'm getting another problem now. I'm following
the instructions here, in conjunction with the readme on the tesseract
site:

http://paramountideas.com/tesseract-ocr-30-and-leptonica-installation-centos-55-and-opensuse-113

http://code.google.com/p/tesseract-ocr/wiki/ReadMe

sudo yum install libjpeg-devel libpng-devel libtiff-devel zlib-devel
(some of these were already installed
sudo yum install gcc gcc-c++ make (these were already installed for us)

download leptonica
./configure
make
sudo make install

download tesseract-x.xx.tar.gz (unpack)
download tesseract-x.xx.<lang>.tar.gz (unpack files into tessdata)
download <lang>.traineddata.gz (unzip into tessdata)
./autogen.sh
mkdir -p m4
./configure

And here's where we have another problem. When running make, I get
the following:

In file included from params.h:26,
from tprintf.h:23,
from ambigs.h:25,
from ambigs.cpp:24:
strngs.h:1: error: stray '\357' in program
strngs.h:1: error: stray '\273' in program
strngs.h:1: error: stray '\277' in program
In file included from unicharset.h:24,
from ambigs.h:27,
from ambigs.cpp:24:
strngs.h:1: error: stray '\357' in program
strngs.h:1: error: stray '\273' in program
strngs.h:1: error: stray '\277' in program
make[3]: *** [ambigs.lo] Error 1
make[3]: Leaving directory `/xxx/tesseract-3.01/ccutil'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/xxx/tesseract-3.01/ccutil'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/xxx/tesseract-3.01'
make: *** [all] Error 2

Any idea on this?

> --
> You received this message because you are subscribed to the Google Groups
> "islandora" group.
> To post to this group, send email to isla...@googlegroups.com.
> To unsubscribe from this group, send email to
> islandora+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/islandora?hl=en.

--
phil

Nick Ruest

unread,
Apr 17, 2012, 11:56:02 AM4/17/12
to isla...@googlegroups.com
Did autogen spit out any errors? Do you have automake installed?

-nruest

Art W Rhyno

unread,
Apr 17, 2012, 12:47:10 PM4/17/12
to isla...@googlegroups.com
> Any idea on this?
 
It sounds like the problem reported here:
 
 
art

Phil Redmon

unread,
Apr 17, 2012, 5:00:12 PM4/17/12
to isla...@googlegroups.com
Great, that seems to have worked, thanks!

Phil Redmon

unread,
Apr 17, 2012, 12:07:05 PM4/17/12
to isla...@googlegroups.com
Yep, we have automake, autogen looked like it ran fine:

Running aclocal
Running libtoolize
Putting files in AC_CONFIG_AUX_DIR, `config'.
Running autoheader
Running automake --add-missing --copy
Running autoconf

All done.
To build the software now, do something like:

$ ./configure [--with-debug] [...other options]
$ make

--
phil

Martin Ezequiel

unread,
May 13, 2014, 2:06:19 PM5/13/14
to isla...@googlegroups.com
Hi everyone,

Phil, could you finally run tesseract on RedHat? I'm getting some error, could you please specify the versions and how you installed tesseract?

Thank you in advance.
Reply all
Reply to author
Forward
0 new messages