Open VictorOnwukwe opened 1 year ago
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.