Clarkz
2013-Oct-14 15:58 UTC
how to fix ''rails server'' problem when I set "gem ''mysql''" in gemfile
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>'' -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f5d2f1d1-57c6-46df-a8f7-ef1960987fe6%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Daniel Dimitrov
2013-Oct-16 07:59 UTC
Re: how to fix ''rails server'' problem when I set "gem ''mysql''" in gemfile
Try this: http://stackoverflow.com/questions/16507408/windows-rails-server-error-mysql-bundler-railties Daniel Dne pondělí, 14. října 2013 17:58:57 UTC+2 Clarkz napsal(a):> > 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>'' >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/886f2152-901a-43b4-a233-bf8e2c99b9ab%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.