我在 Postgres 9.4.1 上收到此错误:
dyld: lazy symbol binding failed: Symbol not found: _PQping
Referenced from: <home_dir>/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/pg-0.21.0/lib/pg_ext.bundle
Expected in: /usr/local/lib/libpq.5.dylib
/usr/local/lib/libpq.5.dylib
与[email protected]
版本相关联
/usr/local/lib/libpq.5.dylib -> ../Cellar/[email protected]/9.6.5/lib/libpq.5.dylib
然后,我使用以下方法升级到 9.6.5:
brew install/upgrade
但仍然收到错误。该pg
宝石看起来不错,我可以从我的Rails应用程序和查询我的模型连接。
如何修复错误?
试试$ gem uninstall pg
然后$ bundle install
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句