Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JakubOboza/68b64230e9270403526828d82ff2461e to your computer and use it in GitHub Desktop.
Save JakubOboza/68b64230e9270403526828d82ff2461e to your computer and use it in GitHub Desktop.
Install Ruby 1.8.7 on macOS Sierra (10.12) with rbenv
brew install apple-gcc42 openssl libyaml libffi
xcode-select --install
export CC=/usr/local/bin/gcc-4.2
export CFLAGS='-g -O2'
export RUBY_CONFIGURE_OPTS=--with-openssl-dir=`brew --prefix openssl`
export CONFIGURE_OPTS=--with-openssl-dir=`brew --prefix openssl`
# I had to edit the svn repo URL in /usr/local/Cellar/ruby-build/20160913/share/ruby-build/1.8.7-p375 and change the URL from http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7 to https://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7
rbenv install 1.8.7-p375
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment