ruby-tesseract-ocr icon indicating copy to clipboard operation
ruby-tesseract-ocr copied to clipboard

Compile error when I tried to run readme example

Open gioknx opened this issue 9 years ago • 4 comments

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.

gioknx avatar Apr 01 '16 02:04 gioknx

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

mkaplan9 avatar Jun 23 '16 21:06 mkaplan9

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

bricemaurin avatar Dec 11 '16 09:12 bricemaurin

is this still broken ?

chivoX avatar Jan 18 '17 22:01 chivoX

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 !

bricemaurin avatar Jan 19 '17 09:01 bricemaurin