2011-10-09 130 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' 

我的坏。修正了这个问题,现在它可以工作。

相关问题