2013-09-22 67 views
-1

當我嘗試啓動我的Rails的服務器我得到以下錯誤:爲什麼我無法在Windows上啓動我的Rails服務器?

C:\Users\Mounarajan P A\pro1>rails s 
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/mysql2-0.3.13/lib/mysql2.rb:8:in `requir 
e': 193: %1 is not a valid Win32 application. - C:/Ruby200-x64/lib/ruby/gems/2 
.0.0/gems/mysql2-0.3.13/lib/mysql2/mysql2.so (LoadError) 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/mysql2-0.3.13/lib/mysql2.rb 
:8:in `<top (required)>' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/r 
untime.rb:72:in `require' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/r 
untime.rb:72:in `block (2 levels) in require' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/r 
untime.rb:70:in `each' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/r 
untime.rb:70:in `block in require' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/r 
untime.rb:59:in `each' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/r 
untime.rb:59:in `require' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler.r 
b:132:in `require' 
     from C:/Users/Mounarajan P A/pro1/config/application.rb:7:in `<top (requ 
ired)>' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/co 
mmands.rb:76:in `require' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/co 
mmands.rb:76:in `block in <top (required)>' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/co 
mmands.rb:73:in `tap' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/co 
mmands.rb:73:in `<top (required)>' 
     from bin/rails:4:in `require' 
     from bin/rails:4:in `<main>' 
+0

你是如何安裝Rails開發環境的? – Victor

+0

@Victor無法得到你嗎? – Mounarajan

+0

你是如何安裝MySQL,Rails,Ruby等的? – Victor

回答

1

我看到了你的有關獲取安裝MySQL2等問題。

我的建議是你使用Railstutorial進行訓練。鏈接是here

它會引導您完成運行環境和編寫Rails代碼的過程。

相關問題