Anyways, I also ran into problems with getting Passenger to install - somewhere along the steps of getting RVM installed, then Ruby 1.9.1, I messed up the gem paths or used sudo when I shouldn't have used sudo. So I had problems running passenger-install-apache2-module. I kept getting the error:
/usr/lib/ruby/1.8/rubygems.rb:636:in `report_activate_error': Could not find RubyGem passenger (>= 0) (Gem::LoadError)
from /usr/lib/ruby/1.8/rubygems.rb:141:in `activate'
from /usr/lib/ruby/1.8/rubygems.rb:49:in `gem'
gem list said it was installed.
However, I discovered that Gem.path was terribly messed up and didn't match gem env at all. When running
$ ruby -r RubyGems -e "p Gem.path"
I got really strange path that had 1.9.1 in it, despite having 1.9.2 installed.
$ gem env
- GEM PATHS:
Anyways, in the end, I used a combination of:
$ Sudo su
first, to get into a root shell, followed by
Then I followed the normal installation steps - that installed rvm into /usr/local/rvm
# Setup default configuration for rvm.
# If an rvm install exists in the home directory, don't load this.'
if [[ ! -s "\$HOME/.rvm/scripts/rvm" ]]; then
Added the following to /etc/profile:
# Load RVM if it is installed,
# first try to load user install
# then try to load root install,
# if user install is not there.
if [ -s "$HOME/.rvm/scripts/rvm" ] ; then
elif [ -s "/usr/local/rvm/scripts/rvm" ] ; then
Added the following to ~/.profile
[[ -s "/usr/local/rvm/scripts/rvm" ]] && . "/usr/local/rvm/scripts/rvm" # This loads RVM into a shell session.