Skip to content

Instantly share code, notes, and snippets.

@kty1965
Last active May 26, 2020 05:37
Show Gist options
  • Save kty1965/7970fd2e0415d38adc11237734d09a4a to your computer and use it in GitHub Desktop.
Save kty1965/7970fd2e0415d38adc11237734d09a4a to your computer and use it in GitHub Desktop.
we are using rails 4

Install Ruby 2.3.8 on Mac(10.15.3(19D76))

Reference issues

Prerequsite

openssl downgrade

brew uninstall --ignore-dependencies openssl@1.1
brew reinstall rbenv/tap/openssl@1.0 #or brew reinstall openssl@1.0
/usr/local/opt/openssl@1.0/bin/c_rehash
echo 'export PATH="/usr/local/opt/openssl@1.0/bin:$PATH"' >> ~/.zshrc

Install ruby 2.3.8

rvm --with-openssl-dir=$(brew --prefix openssl@1.0) --autolibs=disable reinstall ruby-2.3.8

gem rubyracer, libv8 install problem

brew install v8 v8@3.15
bundle config build.libv8 --with-system-v8
bundle config build.therubyracer --with-v8-dir=/usr/local/opt/v8@3.15
bundle update libv8 therubyracer

Already used openssl directory, Need to symbolic link

ln -s openssl@1.0 openssl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment