# Problem Installing Passenger

**URL:** <https://www.ruby-forum.com/t/problem-installing-passenger/185667>\
**Category:** Rails\
**Created:** [March 24, 2010, 1:10pm UTC](https://www.ruby-forum.com/t/problem-installing-passenger/185667 "2010-03-24T13:10:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![droopy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/47e85d/32.png) [@droopy](https://www.ruby-forum.com/u/droopy)\
**Post date:** [March 24, 2010, 1:10pm UTC](https://www.ruby-forum.com/t/problem-installing-passenger/185667/1 "2010-03-24T13:10:14Z")

</div>

Hi there,

I’m trying to install passenger on a hosted server which has  
Ubuntu 9.04  
Ruby 1.8.6  
Rails 2.3.5  
Apache 2  
I had some trouble with gem install passenger, but went through after  
installing build-essential which were not on the machine.  
First when I launched passenger-install-apache2-module, it complained  
about Apache not in the correct mpm mode, so I installed mpm-prefork

Now when I relaunch passenger-install-apache2-module, I get this:

Compiling and installing Apache 2 module…  
cd /srv/d\_prod/home/christophe/gems/gems/passenger-2.2.11  
/usr/bin/ruby1.8 -S /usr/bin/rake clean apache2

# /usr/bin/ruby1.8 -S /usr/bin/rake clean apache2

(in /srv/d\_prod/home/christophe/gems/gems/passenger-2.2.11)  
rake aborted!  
undefined method `rakefile' for #<Rake::Application:0xb7c6719c> /srv/d_prod/home/christophe/gems/gems/passenger-2.2.11/Rakefile:630:in`new’  
(See full trace by running task with --trace)

I also reinstalled rake

Any thoughts, anyone ?

Thanks,  
Christophe

---

<div class="post-metadata">

**Author:** ![droopy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/47e85d/32.png) [@droopy](https://www.ruby-forum.com/u/droopy)\
**Post date:** [March 24, 2010, 1:14pm UTC](https://www.ruby-forum.com/t/problem-installing-passenger/185667/2 "2010-03-24T13:14:55Z")

</div>

On Wed, Mar 24, 2010 at 9:08 AM, Christophe D.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Now when I relaunch passenger-install-apache2-module, I get this:
> 
> I also reinstalled rake
> 
> Any thoughts, anyone ?

How did you install rake? with through gem or through package manager?  
Try to avoid gems installation via the package manager, my advice,  
based on the experience on Debian(-like) systems with this things is  
you have to install only rubygems from the package manager and then,  
everything else with the gem command.

Hope it helps.

–  
Leonardo M…  
There’s no place like ~

---

<div class="post-metadata">

**Author:** ![droopy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/47e85d/32.png) [@droopy](https://www.ruby-forum.com/u/droopy)\
**Post date:** [March 24, 2010, 1:19pm UTC](https://www.ruby-forum.com/t/problem-installing-passenger/185667/3 "2010-03-24T13:19:00Z")

</div>

Thanks Leonardo,  
I installed everything with gem

Anyone else ?  
Le 24 mars 2010 à 13:13, Leonardo M. a écrit :

---

<div class="post-metadata">

**Author:** ![droopy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/47e85d/32.png) [@droopy](https://www.ruby-forum.com/u/droopy)\
**Post date:** [March 24, 2010, 2:21pm UTC](https://www.ruby-forum.com/t/problem-installing-passenger/185667/4 "2010-03-24T14:21:39Z")

</div>

try to install ‘ruby-devel’, in ubuntu it ‘gem install ruby-devel’ I  
guess  
Is it helps?

On Mar 24, 3:17 pm, Christophe D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
