tess 3.04.01 TOOLS install on centos 6.8

272 views
Skip to first unread message

Gary Evensen

unread,
Jul 22, 2016, 9:17:57 AM7/22/16
to tesseract-ocr
I am failing the tools install with the following warnings

checking for pango-1.0/pango/pango-features.h... no
configure: WARNING: Training tools WILL NOT be built because of missing pango li
configure: WARNING: Try to install libpango1.0-dev package.
checking cairo/cairo-version.h usability... no
checking cairo/cairo-version.h presence... no
checking for cairo/cairo-version.h... no
configure: WARNING: Training tools WILL NOT be built because of missing cairo li
configure: WARNING: Try to install libcairo-dev?? package.
configure: WARNING: Training tools WILL NOT be built because of missing c++11 su
configure: creating ./config.status
config.status: creating Makefile

i have found some rpms on http://ftp.riken.jp/Linux/centos/6/os/x86_64/Packages/ but i get a failure installing them



 yum install pycairo-1.8.6-2.1.el6.x86_64.rpm
Loaded plugins: fastestmirror, security
Setting up Install Process
Examining pycairo-1.8.6-2.1.el6.x86_64.rpm: pycairo-1.8.6-2.1.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64.rpm: does not update installed package.
Error: Nothing to do

i did also install c++11 but it says no

the whole ./config result is below


./configure
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
./configure: line 2807: git: command not found
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking --enable-graphics argument... yes
checking whether to disable cube... no
checking --enable-embedded argument... no
checking for  option to support OpenMP... -fopenmp
checking --enable-opencl argument... no
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking CL/cl.h usability... no
checking CL/cl.h presence... no
checking for CL/cl.h... no
checking OpenCL/cl.h usability... no
checking OpenCL/cl.h presence... no
checking for OpenCL/cl.h... no
checking tiffio.h usability... yes
checking tiffio.h presence... yes
checking for tiffio.h... yes
checking for clGetPlatformIDs in -lOpenCL... no
checking --enable-visibility argument... no
checking --enable-multiple-libraries argument... no
checking whether to use tessdata-prefix... yes
checking whether to enable debugging... no
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking how to run the C++ preprocessor... g++ -E
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libr
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libr
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libr
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether byte ordering is bigendian... no
checking if compiling with clang... no
checking whether compiler supports C++11... no
checking for snprintf... no
checking for library containing sem_init... -lpthread
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/shm.h usability... yes
checking sys/shm.h presence... yes
checking for sys/shm.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... no
checking whether #! works in shell scripts... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for getline... yes
checking for wchar_t... yes
checking for long long int... yes
checking for off_t... yes
checking for mbstate_t... yes
checking for leptonica... yes
checking for pixCreate in -llept... yes
checking leptonica version >= 1.71... yes
checking unicode/uchar.h usability... yes
checking unicode/uchar.h presence... yes
checking for unicode/uchar.h... yes
checking pango-1.0/pango/pango-features.h usability... no
checking pango-1.0/pango/pango-features.h presence... no
checking for pango-1.0/pango/pango-features.h... no
configure: WARNING: Training tools WILL NOT be built because of missing pango li
configure: WARNING: Try to install libpango1.0-dev package.
checking cairo/cairo-version.h usability... no
checking cairo/cairo-version.h presence... no
checking for cairo/cairo-version.h... no
configure: WARNING: Training tools WILL NOT be built because of missing cairo li
configure: WARNING: Try to install libcairo-dev?? package.
configure: WARNING: Training tools WILL NOT be built because of missing c++11 su
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tesseract.pc
config.status: creating api/Makefile
config.status: creating ccmain/Makefile
config.status: creating opencl/Makefile
config.status: creating ccstruct/Makefile
config.status: creating ccutil/Makefile
config.status: creating classify/Makefile
config.status: creating cube/Makefile
config.status: creating cutil/Makefile
config.status: creating dict/Makefile
config.status: creating neural_networks/runtime/Makefile
config.status: creating textord/Makefile
config.status: creating viewer/Makefile
config.status: creating wordrec/Makefile
config.status: creating tessdata/Makefile
config.status: creating tessdata/configs/Makefile
config.status: creating tessdata/tessconfigs/Makefile
config.status: creating testing/Makefile
config.status: creating java/Makefile
config.status: creating java/com/Makefile
config.status: creating java/com/google/Makefile
config.status: creating java/com/google/scrollview/Makefile
config.status: creating java/com/google/scrollview/events/Makefile
config.status: creating java/com/google/scrollview/ui/Makefile
config.status: creating doc/Makefile
config.status: creating config_auto.h
config.status: config_auto.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

Configuration is done.
You can now build and install tesseract by running:

$ make
$ sudo make install

You can not build training tools because of missing dependency.
Check configure output for details.

ShreeDevi Kumar

unread,
Jul 22, 2016, 9:52:39 AM7/22/16
to tesser...@googlegroups.com

sudo apt-get install libicu-dev # (if you plan to make the training tools)

sudo apt-get install libpango1.0-dev # (if you plan to make the training tools)

sudo apt-get install libcairo2-dev # (if you plan to make


- sent from my phone. excuse the brevity.


--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/f9d749d9-9a70-42db-9776-e8d76e17c0ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gary Evensen

unread,
Jul 22, 2016, 10:26:33 AM7/22/16
to tesseract-ocr
this is centos 6.8 those commands dont work, i see those on the linux guide
i tried wget but it cant find it

 wget install libicu-dev
--2016-07-22 09:39:35--  http://install/
Resolving install... failed: Name or service not known.
wget: unable to resolve host address “install”
--2016-07-22 09:39:36--  http://libicu-dev/
Resolving libicu-dev... failed: Name or service not known.
wget: unable to resolve host address “libicu-dev”

Gary Evensen

unread,
Jul 22, 2016, 10:34:24 AM7/22/16
to tesseract-ocr

Gary Evensen

unread,
Jul 22, 2016, 10:46:47 AM7/22/16
to tesseract-ocr
actually i see those modules installed but ./config is not seeing them


On Friday, July 22, 2016 at 9:17:57 AM UTC-4, Gary Evensen wrote:

Zdenko Podobný

unread,
Jul 22, 2016, 11:09:36 AM7/22/16
to tesser...@googlegroups.com
Please post result of command
rpm -qa | grep pango

Zdenko

--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.

Gary Evensen

unread,
Jul 22, 2016, 11:23:47 AM7/22/16
to tesser...@googlegroups.com
 rpm -qa | grep pango
pango-1.28.1-11.el6.x86_64


--
You received this message because you are subscribed to a topic in the Google Groups "tesseract-ocr" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tesseract-ocr/LnRtb1Ya9wk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tesseract-oc...@googlegroups.com.

To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.

For more options, visit https://groups.google.com/d/optout.



--
Pastor Gary L Evensen
The North Jersey United Pentecostal Church


Gary Evensen

unread,
Jul 22, 2016, 11:26:23 AM7/22/16
to tesser...@googlegroups.com
 yum install pango-1.28.1-11.el6.x86_64
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * asl-4.0: www3.atomicorp.com
 * tortix: www3.atomicorp.com
 * tortix-kernel: www3.atomicorp.com
Package pango-1.28.1-11.el6.x86_64 already installed and latest version
Nothing to do

Zdenko Podobný

unread,
Jul 22, 2016, 2:27:39 PM7/22/16
to tesser...@googlegroups.com
Well if you are not familiar with your system and compiling from source I would suggest you invest your time to something else.
You have installed only runtime library and not development packages.

Rev Gary L Evensen

unread,
Jul 22, 2016, 2:31:56 PM7/22/16
to tesser...@googlegroups.com
Ill figure it out thanks for the encouragement

Sent from my iPhone

ShreeDevi Kumar

unread,
Jul 24, 2016, 12:01:32 AM7/24/16
to tesser...@googlegroups.com

Rev Gary L Evensen

unread,
Jul 24, 2016, 6:21:12 AM7/24/16
to tesser...@googlegroups.com
Thank you kumar

Apparently i was missing one dependency it is making now


Sent from my iPhone
Reply all
Reply to author
Forward
0 new messages