Last active
October 16, 2019 15:02
-
-
Save sadikay/6cdff49479922194e2e9f6106bc571b1 to your computer and use it in GitHub Desktop.
MacOS Catalina ruby & gems install errors
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
# Old Ruby Versions error | |
RUBY_CONFIGURE_OPTS=--with-openssl-dir=/usr/local/Cellar/openssl/1.0.2t rbenv install 2.3.3 | |
# therubyracer gem install fails. Solution: | |
bundle config --local build.therubyracer --with-v8-dir=$(brew --prefix v8-315) | |
# Mysql2 Error | |
brew install openssl| | |
gem install mysql2 -v '0.4.10' | |
# if still fails run: | |
gem install mysql2 -v '0.4.10' -- --with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/include |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment