Skip to content

Compile Error #6

Closed
ahcarpenter opened this Issue Aug 21, 2012 · 4 comments

3 participants

@ahcarpenter

Any ideas?

1.9.3-p194 :002 > require 'tesseract-ocr'
CompilationError: compile error: see logs at /var/folders/50/lqj89g0s0p9gz5y740vqrdlh0000gn/T/.ffi-inline-501/ca42830ab1bc25eeab641008822a15237daa5d56.log
    from /Users/ahcarpenter/.rvm/gems/ruby-1.9.3-p194/gems/ffi-inline-0.0.4/lib/ffi/inline/compilers/gcc.rb:29:in `compile'
    from /Users/ahcarpenter/.rvm/gems/ruby-1.9.3-p194/gems/ffi-inline-0.0.4/lib/ffi/inline/builders/c.rb:114:in `shared_object'
    from /Users/ahcarpenter/.rvm/gems/ruby-1.9.3-p194/gems/ffi-inline-0.0.4/lib/ffi/inline/builders.rb:90:in `block in build'
    from /Users/ahcarpenter/.rvm/gems/ruby-1.9.3-p194/gems/ffi-inline-0.0.4/lib/ffi/inline/builders.rb:87:in `instance_eval'
    from /Users/ahcarpenter/.rvm/gems/ruby-1.9.3-p194/gems/ffi-inline-0.0.4/lib/ffi/inline/builders.rb:87:in `build'
    from /Users/ahcarpenter/.rvm/gems/ruby-1.9.3-p194/gems/ffi-inline-0.0.4/lib/ffi/inline/inline.rb:54:in `singleton_inline'
    from /Users/ahcarpenter/.rvm/gems/ruby-1.9.3-p194/gems/ffi-inline-0.0.4/lib/ffi/inline/inline.rb:39:in `inline'
    from /Users/ahcarpenter/.rvm/gems/ruby-1.9.3-p194/gems/tesseract-ocr-0.1.5/lib/tesseract/c.rb:34:in `<module:C>'
    from /Users/ahcarpenter/.rvm/gems/ruby-1.9.3-p194/gems/tesseract-ocr-0.1.5/lib/tesseract/c.rb:31:in `<module:Tesseract>'
    from /Users/ahcarpenter/.rvm/gems/ruby-1.9.3-p194/gems/tesseract-ocr-0.1.5/lib/tesseract/c.rb:29:in `<top (required)>'
    from /Users/ahcarpenter/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /Users/ahcarpenter/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /Users/ahcarpenter/.rvm/gems/ruby-1.9.3-p194/gems/tesseract-ocr-0.1.5/lib/tesseract/api.rb:26:in `<top (required)>'
    from /Users/ahcarpenter/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /Users/ahcarpenter/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /Users/ahcarpenter/.rvm/gems/ruby-1.9.3-p194/gems/tesseract-ocr-0.1.5/lib/tesseract-ocr.rb:35:in `<top (required)>'
    from /Users/ahcarpenter/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
    from /Users/ahcarpenter/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
    from /Users/ahcarpenter/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
    from (irb):2
    from /Users/ahcarpenter/.rvm/rubies/ruby-1.9.3-p194/bin/irb:16:in `
@meh
Owner
meh commented Aug 21, 2012

What do the logs say?

@ahcarpenter
ld: in /usr/local/Cellar/tesseract/3.01/lib/, can't map file, errno=22 for architecture x86_64
collect2: ld returned 1 exit status

@meh
Owner
meh commented Aug 21, 2012

Have you installed a 32 bit version of tesseract on a 64 bit OS?

Because that's what it sounds like reading that error.

@ryudice
ryudice commented Nov 11, 2012

I had the same issue and it was because I had not installed tesseract in OSX, I installed using brew, just run 'brew install tesseract'.

@meh meh closed this Mar 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.