I built both from source yesterday. Try the following for building tesseract
/autogen.sh ./configure LDFLAGS="-L/usr/local/lib" CFLAGS="-I/usr/local/include" make sudo make install sudo ldconfig As given in compiling page on wiki - excuse the brevity, sent from mobile On 25-Apr-2017 2:14 PM, "Jean-Christophe Penalva" < [email protected]> wrote: > Hello, > > i try to compile the new version of Tesseract (v4.0x) on a redhat from > source. I've already compile and install the libleptonica, and now i've a > pb during the configure stage of tesseract : > > export CFLAGS=-I...../leptonica/1.74.1/include > export CPPFLAGS=-I......../leptonica/1.74.1/include > export LDFLAGS=-L......./leptonica/1.74.1/lib > > ./configure --prefix=......./tesseract/4.0 > --with-extra-includes=......./leptonica/1.74.1/include > --with-extra-libraries=......../leptonica/1.74.1/lib > ... > .... > checking for long long int... yes > checking for off_t... yes > checking for mbstate_t... yes > ./configure: line 16347: syntax error near unexpected token `LEPTONICA,' > ./configure: line 16347: `PKG_CHECK_MODULES(LEPTONICA, lept >= 1.74, > have_lept=true, have_lept=false)' > > I search for a this message ... but nothing. Is it possible to install > tesseract from sources (and from sources of leptonica too) ? > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > 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/041d7e95-7af2-4faa-80c7-2844c587b6ed% > 40googlegroups.com > <https://groups.google.com/d/msgid/tesseract-ocr/041d7e95-7af2-4faa-80c7-2844c587b6ed%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. 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/CAG2NduWfMaLBAv37b0xAxZs-93d%3D-m74OTrPZPV%3Dpi7%2BED5pxg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

