mysql - RoR Beginner - cannot load such file -- mysq12/2.0...WIN8, Ruby2.0,Rails3.2.13 -


i started using rails. i've been reading past few hours on how set , it's killing me can't figure out. i'm running windows 8, installed ruby 2.0, rails 3.2.13, mysql2, devkit, connector c, everything!

so go create new project: rails new blog -d mysql

it works, creates new folder called blog. "cd blog" directory. type "rake db:create" make new database, , error comes up:

cannot load such file -- mysql2/2.0/mysql2 c:/users/brice/desktop/ruby/test rails/blog2/config/application.rb:7:in '<top <required>>' c:/users/brice/desktop/ruby/test rails/blog2/rakefile:5:in '<top <required>>' <see full trace running task --trace>

i don't understand what's wrong! read might mysql2 problem. reinstalled/installed several times. dragged libmysql.dll file ruby2.0/bin folder.

i notice when use gem install mysql2 this:

unable convert "\x90" ascii-8bit utf-8 lib/mysql2/1.8/mysq12.so, skipping unable convert "\x90" ascii-8bit utf-8 lib/mysql2/1.9/mysq12.so, skipping

could issue?

thanks help!

it difficult investigate complicated installs 1 remote. if starting, encourage use "pre bundled" package need inside famous railsinstaller. operational environment :

  • ruby 1.9.3-p392
  • rails 3.2
  • bundler
  • git
  • sqlite
  • tinytds
  • sql server support
  • devkit

you'll have plenty of opportunities later customize environment.

note in own , limited experience, windows not best environment develop using rails.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -