ruby-on-rails - Postgresql 无法加载 hstore.so

标签 ruby-on-rails postgresql

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/

相关文章:

ruby-on-rails - 按散列中的部分属性分组

json - 尝试使用带有更新/插入的 RETURNING 从 plpgsql 函数返回时出错

function - SELECT 和 FUNCTION 调用之间的查询行为不同

javascript - 首次单击 Rails、Coffeescript 后禁用链接

ruby-on-rails - 弃用警告 : You have Rails 2. 供应商/插件中的 3 样式插件! Rails 4.0 中将不再支持

ruby-on-rails - 私有(private) repo 正在通过 ansible playbook 克隆,但私有(private) gem 没有安装

postgresql - 如何在 postgresql 中以弹性方式删除触发器

postgresql查询这种情况?

postgresql - Postgres 会将 WHERE 子句下推到带有窗口函数(聚合)的 VIEW 中吗?

ruby-on-rails - Rails、NGINX、Unicorn 和 Capistrano : Missing `secret_token`