ここではまったく初心者ですが、このエラーを回避する方法がわかりません。Centos 6 を実行している Linux サーバーに 'tesseract' gem をインストールして実行したいと考えています。
投稿された他のtesseract / Rubyの問題を読みましたが、それらの問題はないと思います。
どんな助けでも大歓迎です。
エラーメッセージ
g++ -shared -fPIC -o /tmp/.ffi-inline-0/3751549a49315e9a7703c6e20a39e587297ce8a8.so /tmp/.ffi-inline-0/3751549a49315e9a7703c6e20a39e587297ce8a8.cpp -ltesseract 2>>/tmp/.ffi-inline-0/3751549a49315e9a7703c6e20a39e587297ce8a8.log
/usr/bin/ld: cannot find -ltesseract
collect2: ld returned 1 exit status
アクションのエラー
[x@y ~]# irb
1.9.3-p327 :001 > require 'tesseract'
CompilationError: compile error: see logs at /tmp/.ffi-inline-0/3751549a49315e9a7703c6e20a39e587297ce8a8.log
from /usr/local/rvm/gems/ruby-1.9.3-p327/gems/ffi-inline-0.0.4.2/lib/ffi/inline/compilers/gcc.rb:31:in `compile'
from /usr/local/rvm/gems/ruby-1.9.3-p327/gems/ffi-inline-0.0.4.2/lib/ffi/inline/builders/c.rb:114:in `shared_object'
from /usr/local/rvm/gems/ruby-1.9.3-p327/gems/ffi-inline-0.0.4.2/lib/ffi/inline/builders.rb:90:in `block in build'
from /usr/local/rvm/gems/ruby-1.9.3-p327/gems/ffi-inline-0.0.4.2/lib/ffi/inline/builders.rb:87:in `instance_eval'
from /usr/local/rvm/gems/ruby-1.9.3-p327/gems/ffi-inline-0.0.4.2/lib/ffi/inline/builders.rb:87:in `build'
from /usr/local/rvm/gems/ruby-1.9.3-p327/gems/ffi-inline-0.0.4.2/lib/ffi/inline/inline.rb:54:in `singleton_inline'
from /usr/local/rvm/gems/ruby-1.9.3-p327/gems/ffi-inline-0.0.4.2/lib/ffi/inline/inline.rb:39:in `inline'
from /usr/local/rvm/gems/ruby-1.9.3-p327/gems/tesseract-ocr-0.1.5/lib/tesseract/c.rb:34:in `<module:C>'
from /usr/local/rvm/gems/ruby-1.9.3-p327/gems/tesseract-ocr-0.1.5/lib/tesseract/c.rb:31:in `<module:Tesseract>'
from /usr/local/rvm/gems/ruby-1.9.3-p327/gems/tesseract-ocr-0.1.5/lib/tesseract/c.rb:29:in `<top (required)>'
from /usr/local/rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/rvm/gems/ruby-1.9.3-p327/gems/tesseract-ocr-0.1.5/lib/tesseract/api.rb:26:in `<top (required)>'
from /usr/local/rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/rvm/gems/ruby-1.9.3-p327/gems/tesseract-ocr-0.1.5/lib/tesseract-ocr.rb:35:in `<top (required)>'
from /usr/local/rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/rvm/gems/ruby-1.9.3-p327/gems/tesseract-ocr-0.1.5/lib/tesseract.rb:25:in `<top (required)>'
from /usr/local/rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
from /usr/local/rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
from /usr/local/rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
from (irb):1
from /usr/local/rvm/rubies/ruby-1.9.3-p327/bin/irb:13:in `<main>'1.9.3-p327
ジェムバージョン
[x@y ~]# gem list
[...]
tesseract-ocr (0.1.5)
[...]
GCC バージョン
[x@y ~]# gcc --version
gcc (GCC) 4.4.6 20120305 (Red Hat 4.4.6-4)
[...]
OS
[x@y ~]# cat /etc/*release*
CentOS release 6.3 (Final)
ルビー版
[x@y ~]# ruby -v
ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]
RVM バージョン(念のため)
[x@y ~]# rvm -v
rvm 1.17.2 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]