xapian-full安装在mac os x snow leopard上,但是在dlopen LoadError中失败了

Wil*_*ung 3 ruby macos rubygems xapian osx-snow-leopard

由于我曾尝试安装xapian但失败了,我尝试使用xapian-full的另一种选择.安装似乎进展顺利,但是当我尝试编写代码时,我再次尝试使用错误消息:

irb(main):001:0> require 'xapian'
LoadError: dlopen(/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/xapian-full-1.1.3.4/lib/_xapian.bundle, 9): Library not loaded: /usr/local/lib/libxapian-1.1.3.dylib
  Referenced from: /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/xapian-full-1.1.3.4/lib/_xapian.bundle
  Reason: image not found - /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/xapian-full-1.1.3.4/lib/_xapian.bundle
    from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/xapian-full-1.1.3.4/lib/_xapian.bundle
    from /opt/ruby-enterprise/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
    from /opt/ruby-enterprise/lib/ruby/site_ruby/1.8/xapian.rb:40
    from /opt/ruby-enterprise/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /opt/ruby-enterprise/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from (irb):1
Run Code Online (Sandbox Code Playgroud)

有谁知道如何解决这个问题?

Sky*_*and 6

到目前为止,在OSX上安装xapian的最简单方法是

sudo brew install xapian --python --ruby #etc
Run Code Online (Sandbox Code Playgroud)

也许这对你有用,就像它对我有用一样.checkout homebrew,http: //github.com/mxcl/homebrew/blob/master/Library/Formula/xapian.rb .