Forum: Ruby on Rails how to fix 'rails server' problem when I set "gem 'mysql'" in gemfile

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
7848ee54703a9f2029647f50186c2537?d=identicon&s=25 Clarkz (Guest)
on 2013-10-15 14:43
(Received via mailing list)
I install mysql in rails , but when submit "rails server" ,it is appear
this problem and the server did not turn on

C:\rubydev\hello>rails server
C:/Ruby200/lib/ruby/gems/2.0.0/gems/mysql-2.9.1-x86-mingw32/lib/mysql.rb:6:in
`r
equire': cannot load such file -- mysql/mysql_api (LoadError)
        from
C:/Ruby200/lib/ruby/gems/2.0.0/gems/mysql-2.9.1-x86-mingw32/lib/mys
ql.rb:6:in `rescue in <top (required)>'
        from
C:/Ruby200/lib/ruby/gems/2.0.0/gems/mysql-2.9.1-x86-mingw32/lib/mys
ql.rb:2:in `<top (required)>'
        from
C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runti
me.rb:72:in `require'
        from
C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runti
me.rb:72:in `block (2 levels) in require'
        from
C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runti
me.rb:70:in `each'
        from
C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runti
me.rb:70:in `block in require'
        from
C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runti
me.rb:59:in `each'
        from
C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runti
me.rb:59:in `require'
        from
C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler.rb:13
2:in `require'
        from C:/rubydev/hello/config/application.rb:7:in `<top
(required)>'
        from
C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/comman
ds.rb:76:in `require'
        from
C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/comman
ds.rb:76:in `block in <top (required)>'
        from
C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/comman
ds.rb:73:in `tap'
        from
C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/comman
ds.rb:73:in `<top (required)>'
        from bin/rails:4:in `require'
        from bin/rails:4:in `<main>'
1efa609faa11777f16f1930c25c91c0c?d=identicon&s=25 Daniel Dimitrov (Guest)
on 2013-10-16 10:40
(Received via mailing list)
Try this:

http://stackoverflow.com/questions/16507408/window...

Daniel

Dne pondl, 14. jna 2013 17:58:57 UTC+2 Clarkz napsal(a):
This topic is locked and can not be replied to.