mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-01-17 19:51:20 +01:00
Add instructions for installing Ruby 2 on Mac OS X with homebrew
This commit is contained in:
parent
37dace69da
commit
7389c8f840
1 changed files with 12 additions and 0 deletions
12
README.md
12
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
|
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
|
||||||
|
|
Loading…
Reference in a new issue