Skip to content

Instantly share code, notes, and snippets.

@joaodrp
Forked from nerdo/rbenv-ruby187-highsierra.sh
Created December 15, 2017 15:24
Show Gist options
  • Save joaodrp/2e389372a557ef531bfa7f04d6457dd9 to your computer and use it in GitHub Desktop.
Save joaodrp/2e389372a557ef531bfa7f04d6457dd9 to your computer and use it in GitHub Desktop.
Install ruby-1.8.7 with rbenv on macOS High Sierra (10.13)
#!/bin/sh
# 1) Install HomeBrew
# 2) brew install openssl gcc@4.9 rbenv
# 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