无法启动对琳达的Ruby服务器上轨道4的基本训练(Cannot start server on Ly

2019-10-23 11:58发布

我正在通过对琳达的Ruby教程on Rails的4基础训练和一切顺利,直到我必须键入:轨道服务器

我已经看到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专业版32操作系统。

问候,

卡罗琳

文章来源: Cannot start server on Lynda Ruby on Rails 4 Essential Training