Я пытаюсь вызвать метод python из ruby.Я установил rubypython, как указано в http://rubypython.rubyforge.org/. Но я получаю следующую ошибку при запуске команды RubyPython.start.
[root@localhost ~]# irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require "rubypython"
=> true
irb(main):003:0> RubyPython.start
LoadError: Could not open library '/usr/local/lib/libpython2.6.a': /usr/local/lib/libpython2.6.a: invalid ELF header
from /usr/local/lib/ruby/gems/1.8/gems/ffi-1.0.9/lib/ffi/library.rb:75:in `ffi_lib'
from /usr/local/lib/ruby/gems/1.8/gems/ffi-1.0.9/lib/ffi/library.rb:54:in `map'
from /usr/local/lib/ruby/gems/1.8/gems/ffi-1.0.9/lib/ffi/library.rb:54:in `ffi_lib'
from /usr/local/lib/ruby/gems/1.8/gems/rubypython-0.5.1/lib/rubypython/python.rb:29
from /usr/local/lib/ruby/gems/1.8/gems/rubypython-0.5.1/lib/rubypython.rb:261:in `load'
from /usr/local/lib/ruby/gems/1.8/gems/rubypython-0.5.1/lib/rubypython.rb:261:in `reload_library'
from /usr/local/lib/ruby/gems/1.8/gems/rubypython-0.5.1/lib/rubypython.rb:104:in `start'
from (irb):3
irb(main):004:0>