From 7389c8f84018b14fbc1d314dfd34d6ba93241359 Mon Sep 17 00:00:00 2001 From: Erik Michaels-Ober Date: Mon, 5 Nov 2012 08:11:51 -0800 Subject: [PATCH] Add instructions for installing Ruby 2 on Mac OS X with homebrew --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 433e447e..201b3f77 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,18 @@ To see a list of all available Ruby versions, run `ruby-build Pass the `-v` or `--verbose` flag to `ruby-build` as the first argument to see what's happening under the hood. +Ruby 2 is incompatible with the version of OpenSSL bundled with Mac OS X, so it +doesn't compile the extension. + +To work around this issue, install OpenSSL using homebrew instead: + + brew install openssl + +Then set the CONFIGURE_OPTS environment variable when you build Ruby: + + export CONFIGURE_OPTS="--with-openssl-dir=`brew --prefix openssl`" + rbenv install 2.0.0-preview1 + ### Custom definitions Both `rbenv install` and `ruby-build` accept a path to a custom