-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compilation error #52
Comments
I also have the same problem: Ruby: ruby 2.1.5p273 (2014-11-13) [x86_64-linux-gnu] Setting up libopenjp2-7:amd64 (2.1.0-2.1) ... sudo gem install tesseract-ocrFetching: refining-0.0.5.5.gem (100%) % tesseract.rb -h cat /tmp/.ffi-inline-1000/3d702cf4f51902a978aedfd62b0e04b75d8512ea.log |
I found a fix for an instance of this compilation error which may help here. Details in another thread #50 (comment) |
I'm running into compilation errors when using the tesseract-ocr gem on my heroku ruby environment. My ruby version is 2.2.2 and ubuntu version is 14.04. Can you shed some light on how to resolve this issue?
Here is the tesseract buildpack I am using:
https://github.com/matteotiziano/heroku-buildpack-tesseract
Here is a snapshot of my tesseract version:
tesseract: /app/vendor/tesseract-ocr/lib/libtiff.so.5: no version information available (required by /app/vendor/tesseract-ocr/lib/liblept.so.4)
tesseract 3.03
leptonica-1.70
libgif 4.1.6(?) : libjpeg 8d : libpng 1.2.50 : libtiff 4.0.3 : zlib 1.2.8 : webp 0.4.0
Here is a snapshot of my error logs:
'2015-09-08T17:14:01.370398+00:00 app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/ffi-inline-0.0.4.3/lib/ffi/inline/compilers/gcc.rb:35:in
compile': compile error: see logs at /tmp/.ffi-inline-4045/3cdb4edaddbba892937d7cffd2d6b0edeadc3d5a.log (CompilationError) 2015-09-08T17:14:01.370416+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/ffi-inline-0.0.4.3/lib/ffi/inline/builders/c.rb:114:in
shared_object'2015-09-08T17:14:01.370418+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/ffi-inline-0.0.4.3/lib/ffi/inline/builders.rb:90:in
block in build' 2015-09-08T17:14:01.370422+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/ffi-inline-0.0.4.3/lib/ffi/inline/builders.rb:87:in
instance_eval'2015-09-08T17:14:01.370423+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/ffi-inline-0.0.4.3/lib/ffi/inline/builders.rb:87:in
build' 2015-09-08T17:14:01.370424+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/ffi-inline-0.0.4.3/lib/ffi/inline/inline.rb:54:in
singleton_inline'2015-09-08T17:14:01.370425+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/ffi-inline-0.0.4.3/lib/ffi/inline/inline.rb:39:in
inline' 2015-09-08T17:14:01.370427+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/tesseract-ocr-0.1.7/lib/tesseract/c.rb:34:in
module:C'2015-09-08T17:14:01.370428+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/tesseract-ocr-0.1.7/lib/tesseract/c.rb:31:in
<module:Tesseract>' 2015-09-08T17:14:01.370429+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/tesseract-ocr-0.1.7/lib/tesseract/c.rb:29:in
<top (required)>'2015-09-08T17:14:01.370430+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/tesseract-ocr-0.1.7/lib/tesseract/api.rb:26:in
require' 2015-09-08T17:14:01.370433+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/tesseract-ocr-0.1.7/lib/tesseract/api.rb:26:in
<top (required)>'2015-09-08T17:14:01.370434+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/tesseract-ocr-0.1.7/lib/tesseract-ocr.rb:35:in
require' 2015-09-08T17:14:01.370435+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/tesseract-ocr-0.1.7/lib/tesseract-ocr.rb:35:in
<top (required)>'2015-09-08T17:14:01.370436+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:76:in
require' 2015-09-08T17:14:01.370437+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:76:in
block (2 levels) in require'2015-09-08T17:14:01.370440+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:72:in
each' 2015-09-08T17:14:01.370441+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:72:in
block in require'2015-09-08T17:14:01.370442+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:61:in
each' 2015-09-08T17:14:01.370445+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:61:in
require'2015-09-08T17:14:01.370446+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler.rb:134:in
require' 2015-09-08T17:14:01.370449+00:00 app[web.1]: from /app/config.ru:5:in
block in2015-09-08T17:14:01.370452+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in
instance_eval' 2015-09-08T17:14:01.370455+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in
initialize'2015-09-08T17:14:01.370458+00:00 app[web.1]: from /app/config.ru:in
new' 2015-09-08T17:14:01.370460+00:00 app[web.1]: from /app/config.ru:in
'2015-09-08T17:14:01.370463+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in
eval' 2015-09-08T17:14:01.370466+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in
new_from_string'2015-09-08T17:14:01.370469+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:40:in
parse_file' 2015-09-08T17:14:01.370473+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/server.rb:299:in
build_app_and_options_from_config'2015-09-08T17:14:01.370474+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/server.rb:208:in
app' 2015-09-08T17:14:01.370476+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/server.rb:336:in
wrapped_app'2015-09-08T17:14:01.370479+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/server.rb:272:in
start' 2015-09-08T17:14:01.370482+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/server.rb:147:in
start'2015-09-08T17:14:01.370485+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/bin/rackup:4:in
<top (required)>' 2015-09-08T17:14:01.370573+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/bin/rackup:23:in
load'2015-09-08T17:14:01.370575+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/bin/rackup:23:in `'
2015-09-08T17:14:02.341851+00:00 heroku[web.1]: Process exited with status 1
2015-09-08T17:14:02.364725+00:00 heroku[web.1]: State changed from starting to crashed
The text was updated successfully, but these errors were encountered: