Skip to content

Instantly share code, notes, and snippets.

@josephrexme
Created February 21, 2023 02:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josephrexme/428c6c3a578728bb83d0cea379cb2660 to your computer and use it in GitHub Desktop.
Save josephrexme/428c6c3a578728bb83d0cea379cb2660 to your computer and use it in GitHub Desktop.
OPENSSL Ruby Issues (fixing for frum vm)
# With Ruby 2.7.7
# The error:
# OpenSSL 3 - symbol not found in flat namespace '_SSL_get1_peer_certificate'
frum uninstall 2.7.7
frum install 2.7.7 --with-openssl-dir=$(brew --prefix openssl@1.1)
gem install bundler -v 2.2.19 # or whatever the Gemfile.lock bundler version you have is
bundle config build.puma --with-cppflags=-I$(brew --prefix openssl@1.1)/include
bundle install
# With Ruby 2.7.2
# 1. Make sure openssl@1.1 is available in $PATH after brew install and also that it has certs in
# /usr/local/etc/openssl@1.1/certs
# If there are no certs, do this:
brew reinstall openssl@1.1
# Check SSL issues
curl -Lks 'https://git.io/rg-ssl' | ruby
@josephrexme
Copy link
Author

Would probably help to keep these in shell config (.zprofile, .zshrc, .bashprofile, .bashrc):

export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"
export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@1.1)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment