gpt4 book ai didi

ruby - xapian-full 安装在 mac os x snow leopard 上但因 dlopen LoadError 而失败

转载 作者:数据小太阳 更新时间:2023-10-29 07:47:15 27 4
gpt4 key购买 nike

因为我尝试安装 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

有人知道怎么解决吗?

最佳答案

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

sudo brew install xapian --python --ruby #etc

也许这对你有用,就像对我有用一样。结帐自制软件,http://github.com/mxcl/homebrew/blob/master/Library/Formula/xapian.rb特别是。

关于ruby - xapian-full 安装在 mac os x snow leopard 上但因 dlopen LoadError 而失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2565082/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com