Last active
January 16, 2019 22:03
-
-
Save marcjeanson/79c03aa25b7839fe25354446cf8041c0 to your computer and use it in GitHub Desktop.
Install ruby 1.8.7 with asdf on macOS 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 | |
# inspired by https://gist.github.com/yatsu/b62f07ef9ff3ae1e0e2bf9a00b8742b6 | |
# Assumes you already have homebrew and asdf installed! | |
# brew install openssl [email protected] | |
# If your macOS is Mojave (10.14), install Xcode 10 and | |
# /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) | |
CC=gcc-4.9 \ | |
CFLAGS="-O2 -fno-tree-dce -fno-optimize-sibling-calls -I$(brew --prefix openssl)/include" \ | |
LDFLAGS="-L$(brew --prefix openssl)/lib" \ | |
asdf install ruby 1.8.7-p375 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
my build failed, but for new and different reasons than before:
nothing i can find makes mention of that CLI opt
-iwithsysroot