Skip to content

Instantly share code, notes, and snippets.

View alessani's full-sized avatar

Matteo Alessani alessani

View GitHub Profile
@alessani
alessani / rbenv-ruby187-mojave.sh
Last active October 23, 2018 12:52 — forked from yatsu/rbenv-ruby187-macos.sh
Install ruby-1.8.7 with rbenv on macOS High Sierra (10.13) and Mojave (10.14)
#!/bin/sh
# 1) Install HomeBrew
# 2) brew install openssl gcc@4.9 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" \