— Ashley Towers

Installing Passenger on Ubuntu 11.10 (Or: How I fixed the “OpenSSL support for Ruby… not found” error)

This post is a reworked version from my now deceased Posterous blog.

As the title suggests, this is how I got Passenger installed on Ubuntu 11.10 with RVM (with 1.9.2). Hopefully this will save you the numerous blind alleys I went down.


I was getting the following error:

Checking for required software...
GNU C++ compiler... found at /usr/bin/g++
Curl development headers with SSL support... found
OpenSSL development headers... found
Zlib development headers... found
Ruby development headers... found
OpenSSL support for Ruby... not found
RubyGems... found
Rake... found at /home/ashley/.rvm/wrappers/ruby-1.9.2-p290@portfolio/rake
rack... found
Apache 2... found at /usr/sbin/apache2
Apache 2 development headers... found at /usr/bin/apxs2
Apache Portable Runtime (APR) development headers... found at /usr/bin/apr-1-config
Apache Portable Runtime Utility (APU) development headers... found at /usr/bin/apu-1-config

Some required software is not installed.
But don't worry, this installer will tell you how to install them.

Running the suggested “apt-get install libopenssl-ruby” as root didn’t work for reasons that can only be attributed to spite. The ususally successful Google-the-error approach didn’t work either.

The fix

So, here’s what worked:

$rvm remove 1.9.2
$rvm pkg install openssl
$rvm install 1.9.2 --with-openssl-dir=$HOME/.rvm/usr

This removed my version of Ruby then reinstalled it with the specified openssl support.

Then it was simply a case of running passenger-install-apache2-module again and then all was good!

Your milage may vary significantly, but if this helps then… yay!

Submit comment