Ruby on rails Rails Postgis升级问题

Ruby on rails Rails Postgis升级问题,ruby-on-rails,postgresql,homebrew,postgis,postgresql-9.2,Ruby On Rails,Postgresql,Homebrew,Postgis,Postgresql 9.2,我已经在Mac上通过自制安装了Postgis和Postgresql,我想将我的Postgis版本升级到2.1.0-rc2。我取消了postgis版本的链接,然后编辑了postgis自制公式。在新公式未编译后,我重新链接了旧公式,现在每当我尝试使用空间列调用数据库表时,都会收到以下错误: PG::UndefinedFile: ERROR: could not load library "/usr/local/Cellar/postgresql/9.2.4/lib/postgis-2.0.so"

我已经在Mac上通过自制安装了Postgis和Postgresql,我想将我的Postgis版本升级到2.1.0-rc2。我取消了postgis版本的链接,然后编辑了postgis自制公式。在新公式未编译后,我重新链接了旧公式,现在每当我尝试使用空间列调用数据库表时,都会收到以下错误:

PG::UndefinedFile: ERROR:  could not load library 
"/usr/local/Cellar/postgresql/9.2.4/lib/postgis-2.0.so":   
dlopen(/usr/local/Cellar/postgresql/9.2.4/lib/postgis-2.0.so, 10): Symbol not found: 
_json_tokener_errors
Referenced from: /usr/local/Cellar/postgresql/9.2.4/lib/postgis-2.0.so
Expected in: /usr/local/lib/libjson.0.dylib
in /usr/local/Cellar/postgresql/9.2.4/lib/postgis-2.0.so

(在执行上述操作之前,我没有遇到此问题)我已重新启动了postgresql server,但该操作不起作用。我不知道如何解决这个问题。

啊!通过恢复到homebrew链接的旧版本json-c,修复了此问题。(特别是json-c 0.10)它与以下命令一样简单:

brew switch json-c 0.10

希望将来有人会觉得这很有用。

从来没有想过要这么做。非常感谢你!最终,我不得不运行这里的pg_升级指令:问题是当我运行
psql
时,它是9.3.1,但服务器仍然是9.2.4.1!Brew以某种方式升级了我的json,使我的postgis安装毫无用处。所以我不得不升级,我想,但即使这样也失败了,最终导致了这个错误和这个解决方案。呸,救命恩人:)