Fedena 安装问题。无法通过 创建数据库rake db:create
。所有 gem 似乎都是 fedena 应用程序的正确版本。Config/database.yml
显然是正确的。无法在 MySQL 中创建数据库的一个可能原因是为 fedena 指定的 RoR 版本不同。即ver 1.8.7
vs ruby 2.5.0p0
(2017-12-25 修订版 61468) [x64-mingw32] (后来安装在系统上)
请看下面:
d:\fedena>rake db:create
Traceback (most recent call last):
13: from C:/Ruby25-x64/bin/rake:23:in `<main>'
12: from C:/Ruby25-x64/bin/rake:23:in `load'
11: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rake-0.8.7/bin/rake:26:in `<top (required)>'
10: from C:/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
9: from C:/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
8: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rake-0.8.7/lib/rake.rb:41:in `<top (required)>'
7: from C:/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
6: from C:/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
5: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rake-0.8.7/lib/rake/win32.rb:2:in `<top (required)>'
4: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rake-0.8.7/lib/rake/win32.rb:3:in `<module:Rake>'
3: from C:/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
2: from C:/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
1: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rake-0.8.7/lib/rake/alt_system.rb:31:in `<top (required)>'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rake-0.8.7/lib/rake/alt_system.rb:32:in `<module:AltSystem>': uninitialized constant Rake::AltSystem::Config (NameError)
Did you mean? RbConfig
任何建议和指导都会很棒。