-
Notifications
You must be signed in to change notification settings - Fork 549
compatibility problem with latest ruby 2.7.2.137 Windows 10 #1151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
ok,I have the same problem as you now,and if you solve the problem, can you give me some help? |
I didn't found any solution for this issue and ended up using ubuntu on vm ware because of time constraint |
I have the same problem, is there any solution? |
I have the same problem, but I resolved following way.
|
I suppose it can be many things, for me the main part of the solution was to not use bundler. Just do After this, for me it was not able to complete that step. Which came down to not being able to find all the mysql dll files. Then I started running it with gem install mysql2 -- --with-mysql-dir="C:/Program Files/MySQL/Connector C++ 8.0" But I got the error:
Looking into the connector folder, I saw a folder called |
For me this is not ideal as I have other projects (different frameworks) depending on mysql changing the lib folder will break things for all other projects |
I can not downgrade the ruby as the project is already in development before I started work on it. |
Hello, I have updated from Ruby 2.6 to 2.7 on multiple windows machines with mysql2 now and found a better way to solve it:
gem install mysql2 --platform=ruby -- --with-mysql-dir="C:\Program Files (x86)\MySQL\Connector C++ 8.0" note
|
@sjieg still same issue |
@AbdulAhadArain looks like it was already installed. maybe try gem uninstall mysql2 and try again. It might also help.to set your gemfile dependency to gem 'mysql2', '~> 0.5.3' |
@sjieg after uninstalling I got this |
You have an |
Worked liked a charm! Thanks! |
Thanx for the help!! These are my notes about this: How to install gem mysql2 0.5.3 with ruby 2.7.3 on windows 10. 1- Downloaded only mysql connector for c++ 8.0 , from here : https://dev.mysql.com/downloads/connector/cpp/ Note: If version error still showing, remove Gemfile.lock, and run first 'bundle install' and the 'bundle update --bundler' |
Uh oh!
There was an error while loading. Please reload this page.
Gem::RuntimeRequirementNotMetError: mysql2 requires Ruby version >= 2.2, <
2.7.dev. The current ruby version is 2.7.2.137.
An error occurred while installing mysql2 (0.5.3)
The text was updated successfully, but these errors were encountered: