rubi 启动服务器的时候报错

2015-12-11 11:45:15 +08:00
 amrxjks

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>'

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

另外,命令最好用 bundle exec rails server 吧
wate
2015-12-11 14:21:11 +08:00
rubi 是什么?我不懂

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/242776

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX