I can't install the MySQL gem. I know this is a very common error but I have searched and tried everything I could. I have been trying to fix it for more than a week and I am very frustrated. I am working on Windows 7 64-bit machine.
I have tried this: http://blog.mmediasys.com/2011/07/07/installing-mysql-on-windows-7-x64-and-using-ruby-with-it/
And moving the libmysql.dll to the bin folder of the ruby installation and still no success. I also tried 64 bit and 32 bit versions. I would love to get this problem out of the way to actually start learning...
I will answer as fast as possible to provide any information you need.
Thank you very much, whoever solves it will be my hero!
EDIT: Here is the error I am getting. It is very common. https://i.stack.imgur.com/Tk8CN.jpg
EDIT: FIXED
I ended up using:
gem install mysql2 --platform=ruby -- '--with-mysql-dir="C:\mysql-connector"'
And this time it worked! I hope this can help anyone with this problem. Source