I am having some problems when trying to install mysql2 gem for Rails. When I try to install it by running bundle install or gem install mysq
mysql2
bundle install
gem install mysq
This solved my problem once in Windows:
subst X: "C:\Program files\MySQL\MySQL Server 5.5" gem install mysql2 -v 0.x.x --platform=ruby -- --with-mysql-dir=X: --with-mysql-lib=X:\lib\opt subst X: /D