Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2008/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails Posggresql无法加载hstore.so_Ruby On Rails_Postgresql - Fatal编程技术网

Ruby on rails Posggresql无法加载hstore.so

Ruby on rails Posggresql无法加载hstore.so,ruby-on-rails,postgresql,Ruby On Rails,Postgresql,使用Rubyonrails 5.2.2.1和posgresql 11.2在MacOSX 10.14.3上运行测试时,我得到以下错误 --- 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

使用Rubyon
rails 5.2.2.1
posgresql 11.2
MacOSX 10.14.3
上运行测试时,我得到以下错误

 --- 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
。见问题

如果您不使用postgist,则无需按照帖子建议重新安装它

brew update; brew reinstall postgresql;