This weekend I installed Ruby Enterprise Edition on Ubuntu 8.10.  There are numerous posts about Ruby Enterprise Edition and tcmalloc on a 64-bit platform, but Phusion have said that it still won't build.  Well, I made some simple changes to the installer and Ruby Enterprise Edition now builds and runs on my Ubuntu 8.10 servers with tcmalloc.  See the changes to the installer and the steps to install Ruby Enterprise Edition below.

Patch used to install Ruby Enterprise Edition:

Steps to install Ruby Enterprise Edition:

First, download Ruby Enterprise Edition from Phusion:

wget http://rubyforge.org/frs/download.php/47937/ruby-enterprise-1.8.6-20081205.tar.gz tar xzvf ruby-enterprise-1.8.6-20081205.tar.gz

Next, apply this patch to Ruby Enterprise Edition (Edit: updated patch):

wget http://gist.github.com/raw/33313/b556fae6a2f1a48c6acea0f350af0f1017efd379 -O patch.diff cd ruby-enterprise-1.8.6-20081205 patch -p1 -E < ../patch.diff

Now simply build and Ruby Enterprise Edition as you would normally.  Configure Passenger (mod_rails, mod_rack) to use the new Ruby Enterprise Edition.

/opt/ruby-enterprise-1.8.6-20081205/bin/passenger-install-apache2-module

Don't forget to make the appropriate changes to your apache.conf.

blog comments powered by Disqus