Commit 7389c8f8 by Erik Michaels-Ober

Add instructions for installing Ruby 2 on Mac OS X with homebrew

parent 37dace69
...@@ -92,6 +92,18 @@ To see a list of all available Ruby versions, run `ruby-build ...@@ -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 Pass the `-v` or `--verbose` flag to `ruby-build` as the first
argument to see what's happening under the hood. 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 ### Custom definitions
Both `rbenv install` and `ruby-build` accept a path to a custom Both `rbenv install` and `ruby-build` accept a path to a custom
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment