Nov 03
This error is usually preceded by
sudo: passenger-install-apache2-module: command not found
so you run the full path:
sudo /var/lib/gems/1.8/bin/passenger-install-apache2-module
but there’s no way around the “Rake… not found” error as the phusion install can’t see rake. As outlined here, you’ll have to
export PATH=$PATH:/var/lib/gems/1.8/bin
and then run the naked
passenger-install-apache2-module
again.
February 12th, 2009 at 8:48 pm
Just had this problem too - did you ever find out more about what is going on here? Going to try your solution now..
February 15th, 2009 at 7:29 am
@Mike: Thanks for your comment. No, I haven’t dug deeper into this issue. It may or may not have to do with Passenger’s handling of ENV variables: http://blog.phusion.nl/2008/12/16/passing-environment-variables-to-ruby-from-phusion-passenger/
March 28th, 2010 at 7:31 pm
Had this problem just last night on an Ubuntu server. Tried running:
sudo export PATH=$PATH:/var/lib/gems/1.8/bin
That didn’t work. Had to run a:
sudo -s
THEN run the export, THEN run passenger-install-apache2-module.
On second thought, I maybe remembering wrong…
I might have done:
sudo su
either way…hope this helps