-
Notifications
You must be signed in to change notification settings - Fork 550
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
Error installing mysql2 on Mac M1 pro (ventura) #1335
Comments
After trying just about every proposed solution by both humans and AI, I eventually resolved this issue by uninstalling ruby and rvm completely and then reinstalling. I still don't know what caused the issue. But this was my fix. Just leaving this out here. |
@VictorOnwukwe Could you please share here which tutorial you followed to install all, even I have the same issue, struggling with it. |
@sreenak I can't recall the tutorial I followed, but I stored the command that worked. Here it is: gem install mysql2 -v ‘0.5.5’ -- --with-ldflags=-L/opt/homebrew/opt/openssl@3/lib --with-cppflags=-I/opt/homebrew/opt/openssl@3/include |
Just in case the other commands don't work. This is what worked for me.
gem uninstall mysql2
bundle config --local build.mysql2 -- --with-mysql-config=$(brew --prefix mysql)/bin/mysql_config --with-ldflags="-L$(brew --prefix zstd)/lib -L$(brew --prefix openssl)/lib" --with-cppflags=-I$(brew --prefix openssl)/include --with-cflags="-Wno-error=implicit-function-declaration"
bundle install |
Hello. I am trying to install mysql2 on my macOS M1 pro (ventura 13.3.1) using the below command:
as suggested here
I am getting the below error
Any suggestion will be appreciated. I'll be happy to provide any further required information.
The text was updated successfully, but these errors were encountered: