我执行" rails generate"时遇到了一个错误。以下是我收到的错误消息。我正在使用Rails 4.0.4和ruby 2.0.0p451(2014-02-24)[x64-mingw32]
C:\ Users \ Phil \ Sites \ simple_cms> rails generate C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/mysql2-0.3.15/lib/mysql2.rb:8:in
requir e': 126: The specified module could not be found. - C:/Ruby200-x64/lib/ruby/ge ms/2.0.0/extensions/x64-mingw32/2.0.0/mysql2-0.3.15/mysql2/mysql2.so (LoadError) from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/mysql2-0.3.15/lib/mysql2.rb :8:in
' 来自C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.6.0.rc2/lib/bundl 呃/ runtime.rb:76:在require' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.6.0.rc2/lib/bundl er/runtime.rb:76:in
块(2级)中的require' 来自C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.6.0.rc2/lib/bundl er / runtime.rb:72:在each' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.6.0.rc2/lib/bundl er/runtime.rb:72:in
块中的require' 来自C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.6.0.rc2/lib/bundl 呃/ runtime.rb:61:在each' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.6.0.rc2/lib/bundl er/runtime.rb:61:in
中需要' 来自C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.6.0.rc2/lib/bundl 呃:132:在require' from C:/Users/Phil/Sites/simple_cms/config/application.rb:7:in
' 来自C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.0.4/lib/rails/co mmands.rb:43:inrequire' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.0.4/lib/rails/co mmands.rb:43:in
' 来自bin / rails:4:require' from bin/rails:4:in
'
C:\ Users \ Phil \ Sites \ simple_cms> rails -v Rails 4.0.4
C:\ Users \ Phil \ Sites \ simple_cms> ruby -v ruby 2.0.0p451(2014-02-24)[x64-mingw32]