无法在Lynda Ruby on Rails 4 Essential Training上启动服务器

时间:2015-06-24 12:57:25

标签: ruby-on-rails windows command-line

我正在完成关于Lynda Ruby on Rails 4 Essential Training的教程,一切顺利,直到我必须输入:rails server

我已经看过Ruby on Rails - 无法加载这样的文件 - mysql2 / 2.2 / mysql2(LoadError),这并没有解决我的问题,我仍然有同样的错误。

然后出现这个大错误: -

C:\Users\Caroline\Sites\simple_cms>rails server
C:/Ruby22/lib/ruby/gems/2.2.0/gems/mysql2-0.3.18-x86-
mingw32/lib/mysql2/mysql2.r
b:2:in `require': cannot load such file -- mysql2/2.2/mysql2 (LoadError)
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/mysql2-0.3.18-x86-mingw32/lib/my
sql2/mysql2.rb:2:in `<top (required)>'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/mysql2-0.3.18-x86-mingw32/lib/my
sql2.rb:31:in `require'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/mysql2-0.3.18-x86-mingw32/lib/my
sql2.rb:31:in `<top (required)>'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.10.4/lib/bundler/runti
me.rb:76:in `require'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.10.4/lib/bundler/runti
me.rb:76:in `block (2 levels) in require'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.10.4/lib/bundler/runti
me.rb:72:in `each'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.10.4/lib/bundler/runti
me.rb:72:in `block in require'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.10.4/lib/bundler/runti
me.rb:61:in `each'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.10.4/lib/bundler/runti
me.rb:61:in `require'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.10.4/lib/bundler.rb:13
4:in `require'
    from C:/Users/Caroline/Sites/simple_cms/config/application.rb:7:in `<top
(required)>'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.2/lib/rails/command
s/commands_tasks.rb:78:in `require'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.2/lib/rails/command
s/commands_tasks.rb:78:in `block in server'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.2/lib/rails/command
s/commands_tasks.rb:75:in `tap'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.2/lib/rails/command
s/commands_tasks.rb:75:in `server'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.2/lib/rails/command
s/commands_tasks.rb:39:in `run_command!'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.2/lib/rails/command
s.rb:17:in `<top (required)>'
    from bin/rails:4:in `require'
    from bin/rails:4:in `<main>'

有谁能告诉我这里出了什么问题?我正在使用Windows 7 Professional 32 OS。

此致

卡罗琳

0 个答案:

没有答案