Last active
July 7, 2019 18:05
-
-
Save thefonso/26b40010ce3918a694d21bd298d1c4cf to your computer and use it in GitHub Desktop.
install ruby 193-p194 on MacOS with rbenv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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