1

First a little indication of what I'm running:

  • Operating System: Windows 8 64-bit
  • Ruby version: 1.9.3p362
  • Rails version: 3.2.11

I've created a new rails project called simple_cms under C:\Users\Dean\Documents\Ruby_Projects\ .

I then navigate into the project directory, so my path then is C:\Users\Dean\Documents\Ruby_Projects\simple_cms\

I then run (with my administrator command prompt)

rails server

but I then get a whole lot of errors but the most prominent one being:

The specified module could not be found some\path\mysql2\1.9\mysql2.so

Any ideas?

EDIT: Attached is my full command prompt output...

enter image description here

  • how did you install ruby, usually the best way to install ruby and rails on windows is to use the rubyinstaller – Egryan Jan 14 '13 at 12:54
  • @Egryan - Yep I used the rubyinstaller... –  Jan 14 '13 at 13:01
  • @Egryan - Have a look at my edited post, attached is the full output of my command prmpt :) –  Jan 14 '13 at 13:11
  • I sorted it out, the answer can be found [here][1]. [1]: http://stackoverflow.com/questions/8740868/mysql2-gem-compiled-for-wrong-mysql-client-library –  Jan 14 '13 at 13:53
  • Good to know, I would answer your own question so other people will get the benefit – Egryan Jan 14 '13 at 14:09

1 Answers1

2

It looks like your mysql2 gem hasn't been installed correctly.

Check out the answer to this question for info on properly installing the mysql2 gem. That should take care of the rest of your errors.

Community
  • 1
  • 1
Zajn
  • 4,078
  • 24
  • 39