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
block in require'
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
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'
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
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)>'
<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
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'
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:229:in
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'
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
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)>'
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
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'
load_dependency'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-
4.0.1/lib/active_support/dependencies.rb:214:in
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'
<top (required)>'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/win32console-1
.3.2-x86-mingw32/lib/win32console.rb:1:in
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/
lib/bundler/runtime.rb:76:in require'
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:76:in
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/
lib/bundler/runtime.rb:72:in each'
block 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
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/
lib/bundler/runtime.rb:61:in each'
require'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/
lib/bundler/runtime.rb:61:in
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/
lib/bundler.rb:133:in require'
<top (required)>'
from C:/eduplatform/config/application.rb:14:in
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.0.1
/lib/rails/commands.rb:74:in require'
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:74:in
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.0.1
/lib/rails/commands.rb:71:in tap'
<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
from bin/rails:4:in require'
<main>'
from bin/rails:4:in
1
kikyous 2015-12-11 11:46:28 +08:00
用 vagrant 吧
|
3
chaucerling 2015-12-11 11:58:33 +08:00
http://stackoverflow.com/questions/28503579/rspec-error-cannot-load-such-file
把 win32Console 这个 gem 删掉 |
4
answeryou 2015-12-11 12:38:29 +08:00
what is rubi ?
|
5
lujiajing1126 2015-12-11 12:40:54 +08:00
windows 出问题就别问了。。
|
7
amrxjks OP @chaucerling 我这是后期维护,原来就是用的 win32Console ,所以我不能随便换掉
|
8
amrxjks OP @lujiajing1126 为什么?这个本来就已经运行在 windows 上的,我做维护需要另行搭建
|
9
dorentus 2015-12-11 14:18:10 +08:00
@amrxjks https://github.com/luislavena/win32console 已经不再维护,去掉它应该不会影响你的 rails 项目的核心功能才对……
另外,命令最好用 bundle exec rails server 吧 |
10
wate 2015-12-11 14:21:11 +08:00
rubi 是什么?我不懂
|