gpt4 book ai didi

ruby-on-rails - rails ,Postgres : dyld: lazy symbol binding failed: Symbol not found: _PQresultMemorySize

转载 作者:行者123 更新时间:2023-12-04 14:28:54 33 4
gpt4 key购买 nike

在 Mac 上用 postgres 创建一个新的 rails-app (6.0.2) 无法让它运行。

在应用程序启动时出现此错误:

dyld: Symbol not found: _PQresultMemorySize
Referenced from: /Users/dev/.rvm/gems/ruby-2.5.7/gems/pg-1.2.2/lib/pg_ext.bundle
Expected in: /usr/lib/libpq.5.dylib

enter image description here

这似乎类似于 dyld: lazy symbol binding failed: Symbol not found: _PQresultMemorySize - Rails ,

但是怎么办呢?

我以前的 rails 应用程序,在 rails v6.0.1 上,也使用相同的 postgres gem 'pg', '>= 0.18', '< 2.0'运行良好

最佳答案

解决我的问题的是运行 gem uninstall pg然后做 bundle install

关于ruby-on-rails - rails ,Postgres : dyld: lazy symbol binding failed: Symbol not found: _PQresultMemorySize,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59846019/

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