Install ruby 2.3.1 in macOS 10.15 Catalina with rbenv

RUBY_CONFIGURE_OPTS=”-with-openssl-dir=/usr/local/opt/openssl” rbenv install 2.3.1

gem libv8 issue in macOS 10.15 Catalina

Install libv8 v=6.7.288.46.1 get stuck with macOS Catalina. Update mini_racer to depend on the libv8 version greater than 7.x.x.

# Gemfile
gem 'mini_racer', '~> 0.2.6'
Fetching libv8 7.3.492.27.1 (x86_64-darwin-19) (was 6.7.288.46.1)
Installing libv8 7.3.492.27.1 (x86_64-darwin-19) (was 6.7.288.46.1)

gem mysql2 in macOS Catalina

brew install mysql@5.7
brew install mysql-client@5.7
#double check if you have openssl install in /usr/local/opt/openssl
gem install mysql2 -v '0.3.21' -- --with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/include

LoadError: libmariadbclient.so.18: cannot open shared object file: No such file or directory mysql2/mysql2.so

I had the above error when building docker image in CircleCI workflow to AWS ECS. I solved the problem by installing:

libmariadb-dev and libmariadbclient-dev

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ly Channa

Ly Channa

213 Followers

Former software developer @InSTEDD @SureSwiftCap, CTO&Co-founder @bookmebus @vtenh . #ecommerce #transportion #fintech #searchengine #systemdeisgn #cloud #ai