Final step of install Tesseract 4.0 on MacOS High Serria___make training___"Need to reconfigure project, so there are no errors"

2,648 views
Skip to first unread message

clzsa...@gmail.com

unread,
Jul 31, 2018, 1:34:49 AM7/31/18
to tesseract-ocr
Hi,

I am new to Tesseract 4.0. Very glad to see you guys are here. I am trying to follow the link below to complie Tesseract 4.0 on my Mac. However, I got the out put in the final "make training" step, which yields "Need to reconfigure project, so there are no errors". Did anybody have this same problem?

Also, when I run "tessearct -v", it generates:

➜  tesseract git:(master) tesseract -v
tesseract 3.05.02
 leptonica-1.76.0
 libgif 5.1.4 : libjpeg 9b : libpng 1.6.34 : libtiff 4.0.9 : zlib 1.2.11 : libwebp 0.5.2 : libopenjp2 2.3.0

It seems I still get version 3.05. 

Best,
Charlie

PSK

unread,
Jul 31, 2018, 3:46:59 AM7/31/18
to tesseract-ocr
Don't know if it helps, but a couple of days ago I installed Tesseract 4 on macOS HighSierra using brew and this command:
brew install tesseract --HEAD

I had to symlink liblep to proper location (don't remember if it was per Tesseract per se, or it was for Tess4j though):
sudo ln -s /usr/local/lib/liblept.5.dylib /opt/local/lib/liblept.4.dylib

How did you install Tesseract on Mac?

clzsa...@gmail.com

unread,
Jul 31, 2018, 12:28:56 PM7/31/18
to tesseract-ocr
Hi PSK, thanks for your reply. I was following the guide here to compile tesseract 4.0

It said we cannot install 4.0 through brew install.

PSK

unread,
Jul 31, 2018, 12:42:50 PM7/31/18
to tesseract-ocr
So I didn't know that 4.0 cannot be installed via brew so blindly I issued this command:
brew install tesseract --HEAD

and it installed 4.0 :) Why don't you just try.

clzsa...@gmail.com

unread,
Jul 31, 2018, 6:01:45 PM7/31/18
to tesseract-ocr
Thanks a lot. I tried brew install tesseract --HEAD and I still got version 3.05.02

=========================================
➜  ~ brew install tesseract --HEAD
Warning: tesseract HEAD-9ce4d05 is already installed and up-to-date
To reinstall HEAD, run `brew reinstall tesseract`

➜  ~ brew reinstall tesseract
==> Reinstalling tesseract
Updating /Users/czhang/Library/Caches/Homebrew/tesseract--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at 9ce4d05 Merge pull request #1812 from noahmetzger/winfix
Entering 'googletest'
Entering 'test'
==> ./autogen.sh
==> ./configure --prefix=/usr/local/Cellar/tesseract/HEAD-9ce4d05
==> make install
Updating /Users/czhang/Library/Caches/Homebrew/tesseract--tessdata-head--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at 7274cfa Merge pull request #16 from Shreeshrii/master
🍺  /usr/local/Cellar/tesseract/HEAD-9ce4d05: 221 files, 673.6MB, built in 2 minutes 34 seconds

➜  ~ tesseract -v
tesseract 3.05.02
 leptonica-1.76.0
  libgif 5.1.4 : libjpeg 9b : libpng 1.6.34 : libtiff 4.0.9 : zlib 1.2.11 : libwebp 0.5.2 : libopenjp2 2.3.0


Does any one have this problem? Thanks again.

PSK

unread,
Jul 31, 2018, 6:48:09 PM7/31/18
to tesseract-ocr
First try to:
brew update
then:
brew install tesseract --HEAD

I've just installed it on my private mac this way and tesseract is 4.0 (still beta though):
tesseract --version
tesseract
4.0.0-beta.3
 leptonica
-1.76.0
  libjpeg
9c : libpng 1.6.35 : libtiff 4.0.9 : zlib 1.2.11
 
Found AVX
 
Found SSE


If this doesn't help, you may want to remove the old version of tesseract if this doesn't help.

As the last resort you may run:
brew upgrade

though, it may take hours to complete (it depends how much stuff you have installed thru brew)

Good luck :)

PSK

unread,
Jul 31, 2018, 6:52:54 PM7/31/18
to tesseract-ocr
I've just spotted that brew did good job (pouring from HEAD-9ce4d05) on your machine.

I think you have an other version of Tesseract installed using other way that's interfering with brew version - be sure to remove the older one.

Good luck no2 :)

clzsa...@gmail.com

unread,
Jul 31, 2018, 7:07:06 PM7/31/18
to tesseract-ocr
Fixed! Thank you so much. I have been stuck over here for 3 days. I found the 3.05.02 version was installed by anaconda. After conda remove tesseract, I get 4.0 version now. So cool! Thank you again. 

============
➜  ~ tesseract -v
tesseract 4.0.0-beta.4-4-g9ce4
 leptonica-1.76.0
  libjpeg 9c : libpng 1.6.35 : libtiff 4.0.9 : zlib 1.2.11
 Found AVX2
 Found AVX
 Found SSE
===========
Message has been deleted

Zdenko Podobny

unread,
Sep 25, 2018, 12:51:30 AM9/25/18
to tesser...@googlegroups.com
Did you installed autoconf-archive?

Zdenko


ut 25. 9. 2018 o 0:02 Kurniawan Kurniawan <kku...@gmail.com> napísal(a):
I still get this error even I have brew upgrade and brew update

brew install tesseract --HEAD
Error: An exception occured within a child process:
  RuntimeError: /usr/local/opt/autoconf-archive not present or broken
Please reinstall autoconf-archive. Sorry :(


Any hints?

--
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/00aedca6-8ff5-43c2-8292-04e949137025%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages