$: rbenv install 2.1.0-dev
falhou no Mac OSX 10.8.4 com o erro:
The Ruby openssl extension was not compiled. Missing the OpenSSL lib?
meu rbenv, ruby-build e openssl são instalados via homebrew.
o problema que eu acho é que o plugin ruby-build não consegue encontrar o openssl com a versão apropriada ao compilar o ruby, o ruby-build usou a lib do openssl do sistema, que é muito velha para compilar o Ruby 2.0
$: openssl version
$: OpenSSL 0.9.8x 10 May 2012
e a versão preparada do openssl é 1.0.1e
$: brew list openssl
/usr/local/Cellar/openssl/1.0.1e/bin/openssl
/usr/local/Cellar/openssl/1.0.1e/bin/c_rehash
/usr/local/Cellar/openssl/1.0.1e/include/openssl/ (75 files)
/usr/local/Cellar/openssl/1.0.1e/lib/libcrypto.1.0.0.dylib
/usr/local/Cellar/openssl/1.0.1e/lib/libssl.1.0.0.dylib
/usr/local/Cellar/openssl/1.0.1e/lib/engines/ (12 files)
/usr/local/Cellar/openssl/1.0.1e/lib/pkgconfig/ (3 files)
/usr/local/Cellar/openssl/1.0.1e/lib/ (4 other files)
/usr/local/Cellar/openssl/1.0.1e/share/man/ (1217 files)
$: brew link openssl
Warning: openssl is keg-only and must be linked with --force
Note that doing so can interfere with building software.
então a solução é
brew link openssl --force
depois disso, o openssl versão 1.0.1e será encontrado primeiro no caminho ao executar o openssl
e outra solução é
RUBY_CONFIGURE_OPTS=--with-openssl-dir=/usr/local/Cellar/openssl/1.0.1e rbenv install 2.1.0-dev