-
Notifications
You must be signed in to change notification settings - Fork 548
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
Unable to use MySql2 on Windows with Ruby 2.7.2 or 3.0.0 - Can we expect an update ? #1180
Comments
I'm trying to install it in ruby 2.7 centos, installed gcc and devel, no luck, is this possible ? "gem install mysql2 -v 0.5.3 --no-document -- --srcdir=/usr/include/mysql",
|
Hi, do you have |
I solved it by using the old mysql community |
I had a similar issue (failure in line 1050 or 1771 of |
I am having similar issue with Ruby version ruby-3.2.1. in mac OS ventura |
I had the same problem in Mac OS Ventura.
|
i did the same but still it is showing the same error
any suggestions..?? |
doing the 1. brew install mysql and then bundle install gem made it work for me |
I am wanting to use MySql with ruby 2.7 & 3.0 (a pre-req to the soon to be released Rails 7.0 version).
I need to go to Rails 7.0 because Webpacker in Rails 6.0 is a mess (apps can work in dev env but the js
assets don't seem to get created in prd env (prd precompile fails to generate the assets folder !).
Webpacker is the new Rails way to manage assets but is split between javascript assets & other assets.
Webpacker manages the javascript while the older mechanism manages the other assets (images & stylesheets).
As said, it is a mess !. Nearly impossible to find any intelligent support.
But on to MySql2 and ruvy 2.7.2 + 3.0.0
Below is what happens in these versions of Ruby (this was in 2.7.2) ...
Fetching gem metadata from https://rubygems.org/.............
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Bundler found conflicting requirements for the Ruby version:
In Gemfile:
Ruby (~> 2.7.2.0) x64-mingw32
Could not find gem 'mysql2 (
> 0.5) x64-mingw32' in any of the gem sources> 0.5) x64-mingw32' in any of the gem sources listed in your Gemfile.listed in your Gemfile.
rails webpacker:install
Could not find gem 'mysql2 (
Run
bundle install
to install missing gems.(I tried setting gemfile entry to 0.5.3 but same problem).
Is this a simple matter of an update to mysql2 ?
Hoping someone has an answer.
The text was updated successfully, but these errors were encountered: