Skip to content

Instantly share code, notes, and snippets.

@whitehat101
Created December 8, 2016 02:19
Show Gist options
  • Save whitehat101/87c06c29dabfe15f094ec331b77a7c6d to your computer and use it in GitHub Desktop.
Save whitehat101/87c06c29dabfe15f094ec331b77a7c6d to your computer and use it in GitHub Desktop.
Installing 1.8.7-p352 on macOS Sierra 10.11 with openssl

Installing 1.8.7-p352 on macOS Sierra 10.11 with openssl

See https://github.com/rbenv/ruby-build/wiki

Assuming rbenv and ruby-build already setup

brew install openssl libyaml libffi readline
# required for building Ruby <= 1.9.3-p0:
brew tap homebrew/dupes && brew install apple-gcc42
brew install https://github.com/Homebrew/homebrew-versions/raw/586b7e9012a3ed1f9df6c43d0483c65549349289/openssl098.rb

# LDFLAGS/CPPFLAGS/PKG_CONFIG_PATH output by `brew install ../openssl098.rb`
LDFLAGS="-L/usr/local/opt/openssl098/lib" CPPFLAGS="-I/usr/local/opt/openssl098/include" PKG_CONFIG_PATH="/usr/local/opt/openssl098/lib/pkgconfig" RUBY_CONFIGURE_OPTS=--with-readline-dir="$(brew --prefix readline)" rbenv install 1.8.7-p352
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment