-
Notifications
You must be signed in to change notification settings - Fork 549
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
can't install mysql2 on mac : error "ld: library not found for -lzstd" #1345
Comments
With correct openssl version if still problem occurs, try #1342 |
You should add linker flags to the build command so it can find the Here's what I ran:
To explain what this command does, it adds a It's not really documented well, but I believe Bundler will take config values with keys of
|
I had to do:
|
Thanks @Faq . I'm having the same issue in Mac M1 machine with ruby 3.3.0, rails 7.1.3.2 and mysql 0.5.6.
after successfully installing the mysql2 gem, then do bundle update. Make sure the bundle installing the correct
|
Here , is the steps i tried to fix the issue with:
gem install mysql2 -- --with-openssl-dir=$(brew --prefix [email protected]) --with-zstd-dir=/opt/homebrew/Cellar/zstd/1.5.5
my envirement :
full error:
The text was updated successfully, but these errors were encountered: