Read more

How to install older versions of REE with rbenv on Ubuntu 12.04

Arne Hartherz
January 13, 2014Software engineer at makandra GmbH

Rbenv won't compile REE 2011.03 properly on Ubuntu 12.04, failing with an error in tcmalloc.cc.

Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

If you want to keep tcmalloc functionality, you can do it like this:

  1. Open ~/.rbenv/plugins/ruby-build/share/ruby-build/ree-1.8.7-2011.03
  2. Replace the file's contents with those from fgrehm's gist Show archive.org snapshot
  3. rbenv install again

You 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.

Posted by Arne Hartherz to makandra dev (2014-01-13 10:59)