[英]dyld: lazy symbol binding failed: Symbol not found: __gdbm_lock_file error with GDBM gem
I'm getting this odd error when I try to use the Ruby GDBM gem .当我尝试使用Ruby GDBM gem时,我遇到了这个奇怪的错误。 The gem used to work.
宝石曾经起作用。 Now when I invoke it I get this error (across many different versions of ruby):
现在,当我调用它时,出现此错误(在许多不同版本的 ruby 中):
dyld: lazy symbol binding failed: Symbol not found: __gdbm_lock_file
Referenced from: /usr/local/lib/libgdbm.dylib
Expected in: flat namespace
dyld: Symbol not found: __gdbm_lock_file
Referenced from: /usr/local/lib/libgdbm.dylib
Expected in: flat namespace
I've tried numerous ruby versions, executing directly from Rbenv and even installing/uninstalling my brew GDBM installation.我已经尝试了许多 ruby 版本,直接从 Rbenv 执行,甚至安装/卸载我的 brew GDBM 安装。 My GDBM Brew installation is at
/usr/local/Cellar/gdbm/1.12
GDBM works when I invoke it manually from the command line (eg gdbm_load
).我的 GDBM Brew 安装在
/usr/local/Cellar/gdbm/1.12
当我从命令行(例如gdbm_load
)手动调用它时,GDBM 工作。
The only thing I can think has changed is that I'm now running on OSX El Capitan 10.11.6.我能想到的唯一改变是我现在在 OSX El Capitan 10.11.6 上运行。 Or that I somehow made a change to my config or PATH files that could have caused this error.
或者我以某种方式对可能导致此错误的配置或 PATH 文件进行了更改。
How can I go about resolving this?我该如何解决这个问题?
The GDBM ruby gem's maintainer has confirmed it's an issue with either HomeBrew or GDBM itself. GDBM ruby gem 的维护者已经确认这是 HomeBrew 或 GDBM 本身的问题。
Manually installing GDBM without using HomeBrew, or installing it with:不使用 HomeBrew 手动安装 GDBM,或使用以下命令安装:
brew install gdbm --build-from-source
can fix the problem.可以解决问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.