problem on setting up ruby on rails -
i started learning ruby on rails "lynda ruby on rails 3 essential training".
i finished installation, , created rails application writing- "rails new app". after when wrote - "rails server", that's saw:
c:\users\oded\sites\simple_cms>rails server c:/ruby192/lib/ruby/gems/1.9.1/gems/mysql2-0.2.6-x86-mingw32/lib/mysql2/mysql2.r b:2:in `require': 193: %1 not valid win32 application. - c:/ruby192/lib/r uby/gems/1.9.1/gems/mysql2-0.2.6-x86-mingw32/lib/mysql2/1.9/mysql2.so (loaderror ) c:/ruby192/lib/ruby/gems/1.9.1/gems/mysql2-0.2.6-x86-mingw32/lib/my sql2/mysql2.rb:2:in `<top (required)>' c:/ruby192/lib/ruby/gems/1.9.1/gems/mysql2-0.2.6-x86-mingw32/lib/my sql2.rb:7:in `require' c:/ruby192/lib/ruby/gems/1.9.1/gems/mysql2-0.2.6-x86-mingw32/lib/my sql2.rb:7:in `<top (required)>' c:/ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/runti me.rb:64:in `require' c:/ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/runti me.rb:64:in `block (2 levels) in require' c:/ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/runti me.rb:62:in `each' c:/ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/runti me.rb:62:in `block in require' c:/ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/runti me.rb:51:in `each' c:/ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/runti me.rb:51:in `require' c:/ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler.rb:11 2:in `require' c:/users/oded/sites/simple_cms/config/application.rb:7:in `<top (re quired)>' c:/ruby192/lib/ruby/gems/1.9.1/gems/railties-3.0.3/lib/rails/comman ds.rb:28:in `require' c:/ruby192/lib/ruby/gems/1.9.1/gems/railties-3.0.3/lib/rails/comman ds.rb:28:in `block in <top (required)>' c:/ruby192/lib/ruby/gems/1.9.1/gems/railties-3.0.3/lib/rails/comman ds.rb:27:in `tap' c:/ruby192/lib/ruby/gems/1.9.1/gems/railties-3.0.3/lib/rails/comman ds.rb:27:in `<top (required)>' script/rails:6:in `require' script/rails:6:in `<main>'
can please me find solution?
happy holidays,
oded
looks you're missing gems! try running bundle install
... should work.
edit: make sure gemfile
contains line
gem 'mysql'
before running bundle install
. bundler set mysql, dependencies , all.
Comments
Post a Comment