Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/assembly/6.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
Postgresql postgres和Unicorn服务器出现问题_Postgresql_Server_Unicorn - Fatal编程技术网

Postgresql postgres和Unicorn服务器出现问题

Postgresql postgres和Unicorn服务器出现问题,postgresql,server,unicorn,Postgresql,Server,Unicorn,当我在设置postgres后尝试运行Unicorn时(与Trinidad和Thin完美配合),我得到以下错误 dyld: lazy symbol binding failed: Symbol not found: _rb_thread_select Referenced from:/Users/pls/.rvm/gems/ruby-2.2.0@coinino/extensions/x86_64-darwin-13/2.2.0/do_postgres-0.10.14/do_postgres/d

当我在设置postgres后尝试运行Unicorn时(与Trinidad和Thin完美配合),我得到以下错误

dyld: lazy symbol binding failed: 
Symbol not found: _rb_thread_select 
Referenced from:/Users/pls/.rvm/gems/ruby-2.2.0@coinino/extensions/x86_64-darwin-13/2.2.0/do_postgres-0.10.14/do_postgres/do_postgres.bundle
  Expected in: flat namespace
Datamapper通常在model.rb内连接到数据库,然后在app.rb中需要model.rb

出了什么问题,我该如何解决


编辑:看起来这是Ruby 2.2.0中的一个bug。

看起来这是Ruby 2.2.0中的一个bug。使用Ruby 2.1.5可以让事情顺利进行。

这似乎是Ruby 2.2.0中的一个bug。进入Ruby 2.1.5可以让事情顺利进行。

Ruby 2.2中删除了旧版本的
pg
gem使用的调用。较新版本的gem不再使用此调用;我知道最新版本(0.18.1)没有,但我不知道是什么时候做的更改。您可以通过运行以下命令来更新
pg
gem:

bundle update pg
只要您这样做,您可能只想运行一个普通的
包更新
,将项目的所有gem更新到最新版本,谁知道还有什么可能与Ruby 2.2不兼容


和往常一样,在更新依赖项时,在将新版本部署到生产环境之前,测试更新不会引入任何新的bug。我怀疑
pg
会引起任何问题,但其他gem可能会引起任何问题。

Ruby 2.2中删除了旧版本
pg
gem使用的调用。较新版本的gem不再使用此调用;我知道最新版本(0.18.1)没有,但我不知道是什么时候做的更改。您可以通过运行以下命令来更新
pg
gem:

bundle update pg
只要您这样做,您可能只想运行一个普通的
包更新
,将项目的所有gem更新到最新版本,谁知道还有什么可能与Ruby 2.2不兼容

和往常一样,在更新依赖项时,在将新版本部署到生产环境之前,测试更新不会引入任何新的bug。我怀疑
pg
会造成任何问题,但其他宝石可能会