Created
July 4, 2020 07:28
-
-
Save ksugawara61/85b01cabebda96b082f5c8cafd5ba785 to your computer and use it in GitHub Desktop.
Macでbundle installでMYSQL2のエラーが出たときの対処法
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ # see also https://qiita.com/fukuda_fu/items/463a39406ce713396403 | |
$ brew info openssl | |
openssl@1.1: stable 1.1.1g (bottled) [keg-only] | |
Cryptography and SSL/TLS Toolkit | |
https://openssl.org/ | |
/usr/local/Cellar/openssl@1.1/1.1.1g (8,059 files, 18MB) | |
Poured from bottle on 2020-06-08 at 09:27:05 | |
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/openssl@1.1.rb | |
==> Caveats | |
A CA file has been bootstrapped using certificates from the system | |
keychain. To add additional certificates, place .pem files in | |
/usr/local/etc/openssl@1.1/certs | |
and run | |
/usr/local/opt/openssl@1.1/bin/c_rehash | |
openssl@1.1 is keg-only, which means it was not symlinked into /usr/local, | |
because macOS provides LibreSSL. | |
If you need to have openssl@1.1 first in your PATH run: | |
echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> /Users/katsuya/.bash_profile | |
For compilers to find openssl@1.1 you may need to set: | |
export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib" | |
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include" | |
For pkg-config to find openssl@1.1 you may need to set: | |
export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig" | |
==> Analytics | |
install: 603,803 (30 days), 2,355,683 (90 days), 6,203,501 (365 days) | |
install-on-request: 76,527 (30 days), 350,885 (90 days), 822,688 (365 days) | |
build-error: 0 (30 days) | |
$ bundle config --local build.mysql2 "--with-ldflags=-L/usr/local/opt/openssl@1.1/lib" | |
$ bundle config --local build.mysql2 "--with-cppflags=-I/usr/local/opt/openssl@1.1/include" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment