Skip to content

Instantly share code, notes, and snippets.

@thefonso
Last active July 7, 2019 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thefonso/26b40010ce3918a694d21bd298d1c4cf to your computer and use it in GitHub Desktop.
Save thefonso/26b40010ce3918a694d21bd298d1c4cf to your computer and use it in GitHub Desktop.
install ruby 193-p194 on MacOS with rbenv
#!/bin/sh
# 1) Install Xcode 10
# 2) Install command line tools: `xcode-select --install`
# 3) Install macOS system headers to `/usr/include`
# /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
# (See https://developer.apple.com/documentation/xcode_release_notes/xcode_10_release_notes)
# 4) Install HomeBrew
# 5) brew install openssl gcc@6 rbenv
# 6) Setup rbenv
# 7) Run this command
CC=gcc-6 \
CFLAGS="-O2 -fno-tree-dce -fno-optimize-sibling-calls -I$(brew --prefix openssl)/include" \
LDFLAGS="-L$(brew --prefix openssl)/lib" \
rbenv install 1.9.3-p194
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment