-
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
M1, mysql 5.7, passed bundle install, fails on db:create, #1252
Comments
I see that you are using mysql2 gem 0.4.10. This is very old. Please update it. You are using Rails 5 and MySQL 5.7, this will work well with mysql2 0.5.x. |
This worked for me: (using homebrew mysql, arm mac, ruby 3.1.2) First clear out gems:
Then See: #1229 (comment) |
Facing the same issue and bundle config is not working for me. Throws the below error: Configuration:
|
I have the same issue using Switching to |
Typically this error indicates you need ro recompile with the same Ruby and MySQL versions as you will use. It is not "fixed" by upgrading Ruby, but rather because that prompted you to recompile your compiled gems. |
I have tried the following:
gem install mysql2 -v '0.4.10' -- --with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/include
bundle install
all passed. But when i run:
bundle exec rake db:create db:structure:load
or
rails db:create
i get this:
Note i have this working in a different repository where i'm using ruby 2.7.5 and bundler 2.3.9 but i was told i'm not able to upgrade my ruby version. so is this a ruby version issue or am i missing something?
edit: added preformatting block quotes
The text was updated successfully, but these errors were encountered: