-
-
Save alessani/e1ca7fbb04ed54c5419a843eb399845d to your computer and use it in GitHub Desktop.
Install ruby-1.8.7 with rbenv on macOS High Sierra (10.13) and Mojave (10.14)
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 HomeBrew | |
# 2) brew install openssl [email protected] rbenv | |
# 3) cd /Library/Developer/CommandLineTools/Packages/ | |
# 4) open macOS_SDK_headers_for_macOS_10.14.pkg | |
# 3) Setup rbenv | |
CC=gcc-4.9 \ | |
CFLAGS="-O2 -fno-tree-dce -fno-optimize-sibling-calls -I$(brew --prefix openssl)/include" \ | |
LDFLAGS="-L$(brew --prefix openssl)/lib" \ | |
rbenv install 1.8.7-p375 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment