Great news, everyone! So ruby 2.0.0-p0 was released today, just shy of ruby's 20th anniversary!
Naturally I ran into 2(.0.0) problems:
Unfortunately, the version of
openssl shipped with OS X (even on Mountain Lion) is out-of-date.
I use rbenv but it hasn't been updated with a definition for
I could download ruby manually and do the
make install dance...
Create a ruby-build definition file
.. or we can use
rbenv with a custom definition file! Create that by running:
$ echo 'install_package "ruby-2.0.0-p0" "http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p0.tar.gz"' > ./custom-2.0.0-p0
openssl, use Homebrew to install a current version:
$ brew update && brew install openssl
Put it all together
Use ruby-build's support for the
CONFIGURE_OPTS environment variable to use the updated
openssl library when compiling, and point
rbenv at our custom definition file:
$ CONFIGURE_OPTS="--with-openssl-dir=`brew --prefix openssl`" rbenv install ./custom-2.0.0-p0