【发布时间】:2013-01-05 15:26:49
【问题描述】:
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/runtime.rb:68:in `block (2 levels) in
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/runtime.rb:66:in `each'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/runtime.rb:66:in `block in require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/runtime.rb:55:in `each'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/runtime.rb:55:in `require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler.rb:122:in `require'
from C:/RAILSI~1/INTERE~1/config/application.rb:7:in `<top (required)>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/commands.rb:53:in `require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/commands.rb:53:in `block in <top (required)>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/commands.rb:50:in `tap'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
C:\RAILSI~1\INTERE~1\config>
这是我可以获取的所有输出,因为 DOS 没有向上滚动。
我正在尝试将 Rails 应用程序从 Linux 移植到 Windows。唯一不同的是这个应用程序使用 mysql。所以安装了MYSQL gem。两者都使用 ruby 191,都使用 rails 329。
我已经进行了一些挖掘,它缝合了它,因为当 mysql gem 被编译为 6.0 时,我放在那里的 mysql.dll 是 5.0 版本。客户端 6.0 似乎不存在。
我通常不会问,但我对此束手无策。
【问题讨论】:
-
仅供参考,这是在 Windows 中设置控制台缓冲区的方法:superuser.com/a/161188/42660
-
如果您将缓冲区设置为合理的大小,命令窗口绝对会“向上滚动”。即使没有,您也可以通过管道将 stdout/stderr 传输到文件中。
-
我试过了,我试过 rails s -p 8080 > out.log 它是空的,上帝我讨厌 windows。
-
P.s 改变缓冲区大小也没有用,我先看了。
-
没有 MySQL 6.0 吗?
标签: mysql ruby-on-rails windows