Skip to content

Instantly share code, notes, and snippets.

@sadikay
Last active October 16, 2019 15:02
Show Gist options
  • Save sadikay/6cdff49479922194e2e9f6106bc571b1 to your computer and use it in GitHub Desktop.
Save sadikay/6cdff49479922194e2e9f6106bc571b1 to your computer and use it in GitHub Desktop.
MacOS Catalina ruby & gems install errors
# 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