由于奇怪的问题导致Rails服务器无法启动(库未加载)

时间:2012-09-28 20:30:33

标签: ruby-on-rails ruby ruby-on-rails-3

我突然开始在启动rails服务器时出现非常奇怪的问题。

任何人都可以帮助我吗?

 /Users/toptier/.rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.1.8/lib/active_support/dependencies.rb:240:in `require': dlopen(/Users/toptier/.rvm/gems/ruby-1.9.2-p320/gems/ffi-1.1.5/lib/ffi_c.bundle, 9): Library not loaded: /opt/local/lib/libffi.5.dylib (LoadError)
  Referenced from: /Users/toptier/.rvm/gems/ruby-1.9.2-p320/gems/ffi-1.1.5/lib/ffi_c.bundle
  Reason: image not found - /Users/toptier/.rvm/gems/ruby-1.9.2-p320/gems/ffi-1.1.5/lib/ffi_c.bundle
from /Users/toptier/.rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.1.8/lib/active_support/dependencies.rb:240:in `block in require'
from /Users/toptier/.rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.1.8/lib/active_support/dependencies.rb:223:in `block in load_dependency'
from /Users/toptier/.rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.1.8/lib/active_support/dependencies.rb:640:in `new_constants_in'
from /Users/toptier/.rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.1.8/lib/active_support/dependencies.rb:223:in `load_dependency'

1 个答案:

答案 0 :(得分:6)

我重新安装了宝石“ffi”,一切正常。

由于