我正在使用unicorn和nginx(http://railscasts.com/episodes/293-nginx-unicorn)的railscasts教程,在vagrant中使用lucid32框。我的操作系统是Mountain Lion。我正在使用rbenv和ruby 1.9.2p290。将unicorn添加到我的Gemfile并运行bundle之后,我运行:
bundle exec unicorn -c config/unicorn.rb -D
这就是结果:
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/kgio-2.8.0/lib/kgio.rb:21:in `require': /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/kgio-2.8.0/lib/kgio_ext.so: undefined symbol: rb_prohibit_interrupt - /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/kgio-2.8.0/lib/kgio_ext.so (LoadError)
from /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/kgio-2.8.0/lib/kgio.rb:21:in `<top (required)>'
from /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/unicorn-4.6.0/lib/unicorn.rb:6:in `require'
from /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/unicorn-4.6.0/lib/unicorn.rb:6:in `<top (required)>'
from /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/unicorn-4.6.0/lib/unicorn/launcher.rb:9:in `require'
from /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/unicorn-4.6.0/lib/unicorn/launcher.rb:9:in `<top (required)>'
from /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/unicorn-4.6.0/bin/unicorn:3:in `require'
from /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/unicorn-4.6.0/bin/unicorn:3:in `<top (required)>'
from /opt/vagrant_ruby/bin/unicorn:19:in `load'
from /opt/vagrant_ruby/bin/unicorn:19:in `<main>'
任何提示?