2011-10-09 46 views
2

我有這個舊的rails應用程序,直到最近工作正常。但現在,當我嘗試使用Rails 3.1應用程序服務器啓動錯誤

rails s 

然後把它給錯誤的啓動軌道服務器 -

/home/rtdp/.rvm/gems/[email protected]/gems/rack-1.3.4/lib/rack/backports/uri/common_192.rb:53: warning: already initialized constant WFKV_ 
    /home/rtdp/.rvm/gems/[email protected]/gems/bundler-1.0.18/lib/bundler/runtime.rb:68:in `require': no such file to load -- false (LoadError) 
    from /home/rtdp/.rvm/gems/[email protected]/gems/bundler-1.0.18/lib/bundler/runtime.rb:68:in `block (2 levels) in require' 
    from /home/rtdp/.rvm/gems/[email protected]/gems/bundler-1.0.18/lib/bundler/runtime.rb:66:in `each' 
    from /home/rtdp/.rvm/gems/[email protected]/gems/bundler-1.0.18/lib/bundler/runtime.rb:66:in `block in require' 
    from /home/rtdp/.rvm/gems/[email protected]/gems/bundler-1.0.18/lib/bundler/runtime.rb:55:in `each' 
    from /home/rtdp/.rvm/gems/[email protected]/gems/bundler-1.0.18/lib/bundler/runtime.rb:55:in `require' 
    from /home/rtdp/.rvm/gems/[email protected]/gems/bundler-1.0.18/lib/bundler.rb:120:in `require' 
    from /home/rtdp/myapplication/config/application.rb:11:in `<top (required)>' 
    from /home/rtdp/.rvm/gems/[email protected]/gems/railties-3.1.1/lib/rails/commands.rb:52:in `require' 
    from /home/rtdp/.rvm/gems/[email protected]/gems/railties-3.1.1/lib/rails/commands.rb:52:in `block in <top (required)>' 
    from /home/rtdp/.rvm/gems/[email protected]/gems/railties-3.1.1/lib/rails/commands.rb:49:in `tap' 
    from /home/rtdp/.rvm/gems/[email protected]/gems/railties-3.1.1/lib/rails/commands.rb:49:in `<top (required)>' 
    from script/rails:6:in `require' 
    from script/rails:6:in `<main>' 

什麼可能導致這一點,我使用 紅寶石 - 1.9.2p290 軌 - 3.1。 1個 捆綁 - 1.0.18

UPDATE:

我發現這個post。使用機架版本1.3.3修復了WFKV常數的警告。

+0

看起來像你使用的是RVM。如果你製作一個全新的gemset並運行'bundle install',它是否仍然會給你那個錯誤? – jergason

+0

我以前使用的是系統紅寶石1.9.2,嘗試安裝新的rvm 1.9.2 ruby​​併爲此創建了新的gemset,但仍然是錯誤。 – rtdp

回答

0

啊,最後我發現我用的方式包括轉寶石是問題。

我這樣做 -

gem 'turn', :require => 'false' 

我的壞。修正了這個問題,現在它可以工作。