由於我試圖安裝xapian但失敗了,我嘗試使用xapian-full的另一種替代方法。安裝似乎順利,但是當我嘗試與我得到再次錯誤消息烤寫代碼:xapian-full安裝在mac os x雪豹上但dlopen失敗LoadError
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
有誰知道如何解決這個問題?
我想這是涉及到不那麼標準的MacPorts安裝。出於某種原因,路徑選項沒有正確連接,因爲macports試圖在預期的ruby庫位置以外的地方安裝xapian ruby綁定。 – 2010-12-01 04:42:24