meh / ruby-tesseract-ocr

A Ruby wrapper library to the tesseract-ocr API.
629 stars 74 forks source link

Compile error when I tried to run readme example #59

Open gioknx opened 8 years ago

gioknx commented 8 years ago

`g++ -shared -fPIC -o /tmp/.ffi-inline-1000/484c67a5da898353715fbd3b073fa014f6937466.so /tmp/.ffi-inline-1000/484c67a5da898353715fbd3b073fa014f6937466.cpp -ltesseract 2>>/tmp/.ffi-inline-1000/484c67a5da898353715fbd3b073fa014f6937466.log /tmp/.ffi-inline-1000/484c67a5da898353715fbd3b073fa014f6937466.cpp:1:30: fatal error: tesseract/strngs.h: No such file or directory

include <tesseract/strngs.h>

                          ^

compilation terminated.`

mkaplan9 commented 8 years ago

Had this issue (OS X El Capitan). Fixed by downgrading tesseract with

brew uninstall --force tesseract
brew install https://raw.githubusercontent.com/Homebrew/homebrew/8ba134eda537d2cee7daa7ebdd9f728389d9c53e/Library/Formula/tesseract.rb

and updating xcode

xcode-select --install
bricemaurin commented 7 years ago

the link to the homebrew repo doesn't work anymore...any other solution ?

chivoX commented 7 years ago

is this still broken ?

bricemaurin commented 7 years ago

the link is now functional, but I get the following error:

brew install https://raw.githubusercontent.com/Homebrew/homebrew/8ba134eda537d2cee7daa7ebdd9f728389d9c53e/Library/Formula/tesseract.rb

Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
No changes to formulae.

######################################################################## 100.0%
Error: Calling Resource#sha1 is disabled!
Use Resource#sha256 instead.
/Users/bricemaurin/Library/Caches/Homebrew/Formula/tesseract.rb:123:in `block (2 levels) in <class:Tesseract>'

@chivoX any idea how to fix this ? Thanks !