sudo apt-get remove tesseract-ocr sudo apt-get remove libtesseract-dev sudo add-apt-repository ppa:alex-p/tesseract-ocr sudo apt-get update
sudo apt install tesseract-ocr sudo apt install libtesseract-dev The above will unintsall and then install the latest version binaries from ppa. Why are you then again building from source? ppa installs the training scripts and puts them in the path too. On Mon, Aug 13, 2018 at 3:24 AM Shandigutt <[email protected]> wrote: > Hi, > > > - I was working with a previous version of Tesseract and I was asked > to get the latest snapshot when I came across the below error, > > https://groups.google.com/forum/#!topic/tesseract-ocr/8fw9P-WoooQ > > > - I followed the wiki and below video tutorials to build Tesseract > from source, > > https://www.youtube.com/watch?v=vOdnt2h1U8U > https://www.youtube.com/watch?v=WZLJucXZy-g > > > - I didn't build Leptonica as I had already built and installed 1.74.4 > version, > > > > - I followed exactly below commands. I have attached the output of > some of them, > > > sudo apt-get remove tesseract-ocr > sudo apt-get remove libtesseract-dev > > sudo add-apt-repository ppa:alex-p/tesseract-ocr > sudo apt-get update > > sudo apt install tesseract-ocr > sudo apt install libtesseract-dev > > sudo apt-get install g++ # or clang++ (presumably) > sudo apt-get install autoconf automake libtool > sudo apt-get install pkg-config > sudo apt-get install libpng-dev > sudo apt-get install libjpeg8-dev > sudo apt-get install libtiff5-dev > sudo apt-get install zlib1g-dev > > sudo apt-get install libicu-dev > sudo apt-get install libpango1.0-dev > sudo apt-get install libcairo2-dev > > git clone https://github.com/tesseract-ocr/tesseract.git #output: > git_clone.txt > cd tesseract > autoreconf -vi #output: autoreconf_vi.txt > ./autogen.sh #output: autogen_sh.txt > ./configure --enable-debug #output: configure_enable_debug.txt > LDFLAGS="L/usr/local/lib" CFLAGS="-I/usr/local/include" make > #output: make.txt > sudo make install #output: make_install.txt > sudo ldconfig #output: ldconfig.txt > make training #output: make_training.txt > sudo make training-install #output: make_training_install.txt > > > > - My OS details are as below, > > Linux shandigutt-laptop-ubuntu 4.4.0-130-generic #156-Ubuntu SMP Thu Jun > 14 08:53:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux > > After building Tesseract following above steps, when I queried Tesseract > version I get the below output, > tesseract -v > tesseract 4.0.0-beta.4-26-gfd49 > leptonica-1.74.4 > libjpeg 8d (libjpeg-turbo 1.4.2) : libpng 1.2.54 : libtiff 4.0.6 : zlib > 1.2.8 > > Found SSE > > > - Files tree in tesseract directory after building is attached as > tesseract_tree.txt > > > I can't find all the training scripts I had previously. Appreciate your > help on this. > > Thanks, > > -- > 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/76b4e521-7e0e-4189-befb-b97b24b0f354%40googlegroups.com > <https://groups.google.com/d/msgid/tesseract-ocr/76b4e521-7e0e-4189-befb-b97b24b0f354%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- ____________________________________________________________ भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com -- 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/CAG2NduWLHspmGdsBf84m22BLHxHdtyic5JyCDu%3DZa15tbc0jbA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

