The trick here is: you need MySQL 32-bit to have Ruby on Rails MySQL2 gem compiling on Windows 7 64-bit. In short, this is what I had to do:
- Install Ruby Development Kit in order to be able to compile C-bindings for Ruby
- Error: The 'mysql2' native gem requires installed build tools.
- gem install mysql2 -- '--with-mysql-lib="c:\Development\MySQL Server 5.5\lib\opt" --with-mysql-include="c:\Development\MySQL\MySQL Server 5.5\include"'
- Error: uninitialized constant Rake::DSL