2012-09-28 61 views
1

我突然開始在啓動rails服務器時出現非常奇怪的問題。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' 
+0

只是爲了確認,當您在應用程序目錄中鍵入「rails s」時,您會收到此消息嗎?你使用的是什麼版本的導軌? – sunnyrjuneja

+0

是的。 Ruby 1.9.2 – Tony

+0

我認爲ruby 1.9.2意味着什麼版本的rails? 3.1? 3.2? – sunnyrjuneja

回答

6

我重新安裝gem「ffi」,一切正常。

謝謝