TurnKey Linux Virtual Appliance Library

Ruby Enterprise Edition HOW-TO

claudiocebpaz's picture


This is how I installed Ruby Enterprise Edition on my Rails Appliance. For more information, go to:



1.- Go to your Turnkey Linux Appliance over SSH or Web SSH and isntall wget (or axel) so you can download the Ruby Enterprise Edition (REE) .deb installer on your box:

apt-get install wget

2.-  Download the .deb installer from the REE official web page (http://www.rubyenterpriseedition.com/download.html)

wget http://rubyforge.org/frs/download.php/66164/ruby-enterprise_1.8.7-2009.1...

3.- On your box type as root:

dpkg -i ruby-enterprise_1.8.7-2009.10-i386.deb

after this, you should be able to see the REE interpreter directly:

ruby -v

you should see:

ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-linux], MBARI 0x8770, Ruby Enterprise Edition 2009.10

4.- Then you need to recompile Phusion Passenger:


Follow the on-screen instruccions. Turnkey linux already has all the dependencies so you don't need to install anything else.

5.- After compiling you need to change one line on the passenger configuration file :

nano /etc/apache2/conf.d/passenger


PassengerRuby /usr/bin/ruby1.8


PassengerRuby /usr/bin/ruby

Save It.

6.- Finally you have to restart apache:

/etc/init.d/apache2 restart

That's It!!


Liraz Siri's picture

Thanks this is really useful

Claudio, thanks for taking the time to put that down into writing. This is very useful. We can use your instructions to create a new page on the community documentation, and it makes creating a Ruby Enterprise appliance much easier. Many thanks!
Alon Swartz's picture

Customization Mechanism (TKLPatch)

We have just released TKLPatch. If someone could create a patch for the above it would dramatically push this appliance forward.
krider2010's picture

Slight differences in latest rails appliance (July 2010)

Using the latest current rails appliance (as of July 2010) the details of this process are slightly different for step 5, not least because I had updated all the gems using

gem update --system
gem update

I needed to edit the passenger config file (/etc/apache2/conf.d/passenger) to have these lines (replace the similar ones already in the file)

LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.15/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.15
PassengerRuby /usr/local/bin/ruby

If there is a later version of passenger installed, edit the above version numbers accordingly.

I also had to edit config/environment.rb in the sample application to comment out RAILS_GEM_VERSION as gem had updated rails to 2.3.8 (and the app was hardcoding that it required 2.3.4).  Obviously for any further app developed that is down to the developer...

Then apache restarted as per step 6 above.

Apologies, I don't have the expertise or time right now to work out how to include this via TKLPatch.

cmoman's picture

Recompile passenger


gem update

The pre existing passenger module not longer worked with the default ruby on rails install.

I needed to recompile passenger before modifying the passenger config file (/etc/apache2/conf.d/passenger).  The default ruby install then worked although the links to the Webmin etc were broken.

This 'How to' was really

This 'How to' was really useful for my Fedena appliance

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)