“Rake… not found” when Installing Phusion Passenger

Ruby on Rails Add comments

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.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

3 Responses to ““Rake… not found” when Installing Phusion Passenger”

  1. Mike Says:

    Just had this problem too - did you ever find out more about what is going on here? Going to try your solution now..

  2. dirk Says:

    @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/

  3. Kevin Lloyd Says:

    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

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in