Error start server webrick on win 7

46 views
Skip to first unread message

Dimitri Borowski

unread,
Apr 23, 2015, 5:21:22 PM4/23/15
to rubyonra...@googlegroups.com
Hi

I cant run server webrick. See, please error below. I installed gem
mysql2 and server mysql on windows.

How solve this problem?

E:\ROR\Projects\firstruby>rails s
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.9.4/lib/bundler/runtim
e.rb:76:in `require'
from
C:/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.9.4/lib/bundler/runtim
e.rb:76:in `block (2 levels) in require'
from
C:/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.9.4/lib/bundler/runtim
e.rb:72:in `each'
from
C:/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.9.4/lib/bundler/runtim
e.rb:72:in `block in require'
from
C:/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.9.4/lib/bundler/runtim
e.rb:61:in `each'
from
C:/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.9.4/lib/bundler/runtim
e.rb:61:in `require'
from
C:/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.9.4/lib/bundler.rb:134
:in `require'
from E:/ROR/Projects/firstruby/config/application.rb:7:in `<top
(require
d)>'
from
C:/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/command
s/commands_tasks.rb:78:in `require'
from
C:/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.1/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.1/lib/rails/command
s/commands_tasks.rb:75:in `tap'
from
C:/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/command
s/commands_tasks.rb:75:in `server'
from
C:/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/command
s/commands_tasks.rb:39:in `run_command!'
from
C:/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/command
s.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'

--
Posted via http://www.ruby-forum.com/.

Antônio Augusto Sousa Britto

unread,
Apr 23, 2015, 5:50:49 PM4/23/15
to rubyonra...@googlegroups.com
here is your error:

 `require': cannot load such file -- mysql2/2.2/mysql2 (LoadError)

good luck.
--
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-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4cba3feb7509bf6984237f22efbe7138%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Dimitri Borowski

unread,
Apr 23, 2015, 5:58:12 PM4/23/15
to rubyonra...@googlegroups.com
I undestand this. I see. But how solve?

Antônio Augusto Sousa Britto

unread,
Apr 23, 2015, 7:18:33 PM4/23/15
to rubyonra...@googlegroups.com
well, I don't know, but I'd check your Gemfile, your PATH, and if "bundle install" recoginzes your gem correctly. After I'd check if your mysql server is actually running, and your database config is correct.
--
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-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.

Vladimir Gordeev

unread,
Apr 23, 2015, 7:51:33 PM4/23/15
to rubyonra...@googlegroups.com
Hacking on windows is such a pain. ("Trying to learn to hack on a Microsoft Windows machine or under any other closed-source system is like trying to learn to dance while wearing a body cast.")

Even worse -- most subscribers use Linux or Mac, so probably not too many here are familiar with your problem. Try Linux or Mac.

But for now: did you have checked that file mysql2/2.2/mysql2 is really present somewhere there?


--
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-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.

Dimitri Borowski

unread,
Apr 24, 2015, 2:56:06 AM4/24/15
to rubyonra...@googlegroups.com
yes, path is correct. i checked.
Reply all
Reply to author
Forward
0 new messages