編程,ruby,rails,sql等新手。隨着視頻教程,但遇到此錯誤。任何幫助讚賞。無法啓動rails服務器。無法找到特定模塊
C:\sites\simple_cms>rails s
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 `<top (required)>'
from c:/ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.6.0.pre.2/lib/bun
dler/runtime.rb:76:in `require'
from c:/ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.6.0.pre.2/lib/bun
dler/runtime.rb:76:in `block (2 levels) in require'
from c:/ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.6.0.pre.2/lib/bun
dler/runtime.rb:72:in `each'
from c:/ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.6.0.pre.2/lib/bun
dler/runtime.rb:72:in `block in require'
from c:/ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.6.0.pre.2/lib/bun
dler/runtime.rb:61:in `each'
from c:/ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.6.0.pre.2/lib/bun
dler/runtime.rb:61:in `require'
from c:/ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.6.0.pre.2/lib/bun
dler.rb:132:in `require'
from C:/sites/simple_cms/config/application.rb:7:in `<top (required)>'
from c:/ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.0.2/lib/rails/co
mmands.rb:74:in `require'
from c:/ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.0.2/lib/rails/co
mmands.rb:74:in `block in <top (required)>'
from c:/ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.0.2/lib/rails/co
mmands.rb:71:in `tap'
from c:/ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.0.2/lib/rails/co
mmands.rb:71:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
C:\sites\simple_cms>
首先在'c:\ sites \ simple_cms'中嘗試'bundle install',然後重試。讓我知道這是否工作 – Abdo
謝謝。試過,但現在得到這個錯誤:c:/ruby200-x64/lib/ruby/gems/2.0.0/gems/mysql2-0.3.15/lib/mysql2.rb:8:在'requir e':193: %1不是有效的Win32應用程序。 - c:/ ruby200-x64/lib/ruby/gems/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:在' from c:/ ruby200-x64/lib/ruby /gems/2.0.0/gems/bundler-1.6.0.pre.2/lib/bun dler/runtime.rb:76:在'require'..... –
Jarg
mysql2 gem需要一些TLC工作窗戶(至少,當我嘗試時是一種痛苦)。顯然[這個人](http://stackoverflow.com/a/19023107/877472)設法解決它。也許它也可以幫助你。 –