错误内容
Bundler::GemRequireError: There was an error while trying to load the gem 'mysql2'.
Gem Load Error is: Incorrect MySQL client library version! This gem was compiled for 6.1.11 but the client library is 10.5.5.
解决方案:
- Download MariaDB Connector/C 3.1.13 and unzip
- Inside the unzip’d folder, rename the libmariadb folder to lib
- Start a cmd terminal and run
ridk enable
- Then run
gem install mysql2 -- --with-mysql-dir=C:/Users/****/mariadb-connector-c-3.1.13-src
参考资料:
https://github.com/brianmario/mysql2/issues/1210