Rbenv won't compile REE 2011.03 properly on Ubuntu 12.04, failing with an error in tcmalloc.cc
.
If you want to keep tcmalloc functionality, you can do it like this:
~/.rbenv/plugins/ruby-build/share/ruby-build/ree-1.8.7-2011.03
rbenv install
againYou could also try CONFIGURE_OPTS="--no-tcmalloc" rbenv install
, but that would disable tcmalloc. Doing that, you might still encounter issues with ossl_ssl.c
-- which is where I switched to the patched solution above.
Note the gist also includes a patch for REE 2012.02. You need to modify ~/.rbenv/plugins/ruby-build/share/ruby-build/ree-1.8.7-2012.02
instead, of course.