在 rails 5.2.2.1
上使用 ruby,在 Mac OsX 10.14.3
上使用 posgresql 11.2
,运行时出现以下错误测试
--- Caused by: ---
# PG::InternalError:
# ERROR: could not load library "/usr/local/lib/postgresql/hstore.so": dlopen(/usr/local/lib/postgresql/hstore.so, 10): Symbol not found: _lookup_rowtype_tupdesc_domain
# Referenced from: /usr/local/lib/postgresql/hstore.so
# Expected in: /usr/local/Cellar/postgresql/10.3/bin/postgres
# in /usr/local/lib/postgresql/hstore.so
如何解决这个问题?
最佳答案
尝试重新安装 PostgreSQL
。请参阅问题 Postgis library not loaded error #46358
brew update; brew reinstall postgresql;
如果您不使用 postgist
,则无需按照帖子建议重新安装它。
关于ruby-on-rails - Postgresql 无法加载 hstore.so,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55211837/