V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
amrxjks
V2EX  ›  Ruby on Rails

rubi 启动服务器的时候报错

  •  
  •   amrxjks · 2015-12-11 11:45:15 +08:00 · 3157 次点击
    这是一个创建于 3269 天前的主题,其中的信息可能已经有所发展或是发生改变。

    C:\eduplatform>ruby -v
    ruby 2.0.0p598 (2014-11-13) [i386-mingw32]

    C:\eduplatform>sqlite3 --version
    3.8.7.2 2014-11-18 20:57:56 2ab564bf9655b7c7b97ab85cafc8a48329b27f93

    C:\eduplatform>rails --version
    Rails 4.0.1

    C:\eduplatform>rails server
    C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/act
    ive_support/dependencies.rb:229:in require': cannot load such file -- 2.0/Conso
    le_ext (LoadError)
    from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-
    4.0.1/lib/active_support/dependencies.rb:229:in
    block in require'
    from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-
    4.0.1/lib/active_support/dependencies.rb:214:in load_dependency'
    from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-
    4.0.1/lib/active_support/dependencies.rb:229:in
    require'
    from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/win32console-1
    .3.2-x86-mingw32/lib/Win32/Console.rb:12:in rescue in <top (required)>'
    from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/win32console-1
    .3.2-x86-mingw32/lib/Win32/Console.rb:8:in
    <top (required)>'
    from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-
    4.0.1/lib/active_support/dependencies.rb:229:in require'
    from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-
    4.0.1/lib/active_support/dependencies.rb:229:in
    block in require'
    from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-
    4.0.1/lib/active_support/dependencies.rb:214:in load_dependency'
    from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-
    4.0.1/lib/active_support/dependencies.rb:229:in
    require'
    from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/win32console-1
    .3.2-x86-mingw32/lib/Win32/Console/ANSI.rb:13:in <top (required)>'
    from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-
    4.0.1/lib/active_support/dependencies.rb:229:in
    require'
    from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-
    4.0.1/lib/active_support/dependencies.rb:229:in block in require'
    from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-
    4.0.1/lib/active_support/dependencies.rb:214:in
    load_dependency'
    from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-
    4.0.1/lib/active_support/dependencies.rb:229:in require'
    from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/win32console-1
    .3.2-x86-mingw32/lib/win32console.rb:1:in
    <top (required)>'
    from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/
    lib/bundler/runtime.rb:76:in require'
    from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/
    lib/bundler/runtime.rb:76:in
    block (2 levels) in require'
    from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/
    lib/bundler/runtime.rb:72:in each'
    from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/
    lib/bundler/runtime.rb:72:in
    block in require'
    from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/
    lib/bundler/runtime.rb:61:in each'
    from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/
    lib/bundler/runtime.rb:61:in
    require'
    from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/
    lib/bundler.rb:133:in require'
    from C:/eduplatform/config/application.rb:14:in
    <top (required)>'
    from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.0.1
    /lib/rails/commands.rb:74:in require'
    from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.0.1
    /lib/rails/commands.rb:74:in
    block in <top (required)>'
    from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.0.1
    /lib/rails/commands.rb:71:in tap'
    from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.0.1
    /lib/rails/commands.rb:71:in
    <top (required)>'
    from bin/rails:4:in require'
    from bin/rails:4:in
    <main>'

    10 条回复    2015-12-11 14:21:11 +08:00
    kikyous
        1
    kikyous  
       2015-12-11 11:46:28 +08:00
    用 vagrant 吧
    amrxjks
        2
    amrxjks  
    OP
       2015-12-11 11:50:56 +08:00
    @kikyous 已经做完的项目,不能换
    chaucerling
        3
    chaucerling  
       2015-12-11 11:58:33 +08:00
    answeryou
        4
    answeryou  
       2015-12-11 12:38:29 +08:00
    what is rubi ?
    lujiajing1126
        5
    lujiajing1126  
       2015-12-11 12:40:54 +08:00
    windows 出问题就别问了。。
    amrxjks
        6
    amrxjks  
    OP
       2015-12-11 12:46:39 +08:00
    @answeryou my bad
    amrxjks
        7
    amrxjks  
    OP
       2015-12-11 12:57:15 +08:00
    @chaucerling 我这是后期维护,原来就是用的 win32Console ,所以我不能随便换掉
    amrxjks
        8
    amrxjks  
    OP
       2015-12-11 12:57:53 +08:00
    @lujiajing1126 为什么?这个本来就已经运行在 windows 上的,我做维护需要另行搭建
    dorentus
        9
    dorentus  
       2015-12-11 14:18:10 +08:00
    @amrxjks https://github.com/luislavena/win32console 已经不再维护,去掉它应该不会影响你的 rails 项目的核心功能才对……

    另外,命令最好用 bundle exec rails server 吧
    wate
        10
    wate  
       2015-12-11 14:21:11 +08:00
    rubi 是什么?我不懂
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3442 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 10:32 · PVG 18:32 · LAX 02:32 · JFK 05:32
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.