Postgres和Unicorn服务器的问题 [英] Problems with postgres and Unicorn server
本文介绍了Postgres和Unicorn服务器的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
设置postgres后尝试运行Unicorn(与Trinidad和Thin完美配合)时,出现以下错误。
When I try running Unicorn after setting up postgres (works perfectly with Trinidad and Thin) I get the following error.
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中则需要。
Datamapper connects to the database normally inside a model.rb which then is required in app.rb.
出什么问题了,我该如何解决?
What is wrong and how do I fix it?
编辑:看来这是Ruby 2.2.0中的错误。
推荐答案
这似乎是Ruby 2.2.0中的错误。使用Ruby 2.1.5可使事情顺利进行。
It looks like this is a bug in Ruby 2.2.0. Going to Ruby 2.1.5 gets things going without trouble.
这篇关于Postgres和Unicorn服务器的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文