ruby服务器无法正常工作

时间:2014-11-15 07:17:38

标签: ruby-on-rails server

一旦我尝试启动rails服务器,我遇到以下问题。任何人都可以帮忙。

E:\sites\simple_cms>rails s
C:/Ruby193/lib/ruby/gems/1.9.1/gems/mysql2-0.2.6-x86-mingw32/lib/mysql2/mysql2.rb:2:in `require': 193: %1 is not a valid Win32 application.   - C:/Ruby193/lib/ruby/gems/1.9.1/gems/mysql2-0.2.6-x86-min
gw32/lib/mysql2/1.9/mysql2.so (LoadError) 
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/mysql2-0.2.6-x86-  mingw3  2/lib/mysql2/mysql2.rb:2:in `<top (required)>'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/mysql2-0.2.6-x86-mingw32/lib/mysql2.rb:7:in `require'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/mysql2-0.2.6-x86-mingw32/lib/mysql2.rb:7:in `<top (required)>'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.7.6/lib/bundler/runtime.rb:76:in `require'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.7.6/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.7.6/lib/bundler/runtime.rb:72:in `each'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.7.6/lib/bundler/runtime.rb:72:in `block in require'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.7.6/lib/bundler/runtime.rb:61:in `each'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.7.6/lib/bundler/runtime.rb:61:in `require'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.7.6/lib/bundler.rb:133:in `require'
    from E:/sites/simple_cms/config/application.rb:7:in `<top (required)>'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-4.0.0/lib/rails/commands.rb:76:in `require'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-4.0.0/lib/rails/commands.rb:76:in `block in <top (required)>'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-4.0.0/lib/rails/commands.rb:73:in `tap'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-4.0.0/lib/rails/commands.rb:73:in `<top (required)>'
    from bin/rails:4:in `require'
    from bin/rails:4:in `<main>'

0 个答案:

没有答案