# Gem path problems w/ Passenger+Apache2

**URL:** <https://www.ruby-forum.com/t/gem-path-problems-w-passenger-apache2/167537>\
**Category:** Rails\
**Created:** [May 9, 2009, 3:14am UTC](https://www.ruby-forum.com/t/gem-path-problems-w-passenger-apache2/167537 "2009-05-09T03:14:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcbey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d9b06d/32.png) [@marcbey](https://www.ruby-forum.com/u/marcbey)\
**Post date:** [May 9, 2009, 3:14am UTC](https://www.ruby-forum.com/t/gem-path-problems-w-passenger-apache2/167537/1 "2009-05-09T03:14:06Z")

</div>

Anyone else having a dickens of a time getting Passenger+Apache2 to  
recognize the gem path?

Many things that work well w/ webbrick just don’t work at all with P+A -  
require fails.

Here are my versions:  
gem 1.3.3 (from source, partly in attempt to get this working…)  
Rails 2.3.2  
Jaunty Jackalope (32-bit)  
passenger 2.2.2  
Apache 2.2.11

Thanks,

m

---

<div class="post-metadata">

**Author:** ![marcbey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d9b06d/32.png) [@marcbey](https://www.ruby-forum.com/u/marcbey)\
**Post date:** [May 9, 2009, 3:18am UTC](https://www.ruby-forum.com/t/gem-path-problems-w-passenger-apache2/167537/2 "2009-05-09T03:18:48Z")

</div>

On Fri, May 8, 2009 at 6:13 PM, Marc B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> passenger 2.2.2  
> Apache 2.2.11
> 
> Thanks,
> 
> m

Can you provide some additional details about the platform you’re using  
and  
the actual error message?

-Conrad

---

<div class="post-metadata">

**Author:** ![marcbey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d9b06d/32.png) [@marcbey](https://www.ruby-forum.com/u/marcbey)\
**Post date:** [May 9, 2009, 4:11am UTC](https://www.ruby-forum.com/t/gem-path-problems-w-passenger-apache2/167537/3 "2009-05-09T04:11:32Z")

</div>

Platform - Ubuntu, 32-bit on EC2, jaunty jackalope

On line that says "require ‘cloud\_cache’ " it says file not found.

Note that in order to get "require ‘simple\_record’ " to load properly I  
had  
to chown www-data:www-data on its files. I did the same on  
“cloud\_cache”  
files but no joy.

Again, all work perfectly well under webbrick.

thanks,

m

---

<div class="post-metadata">

**Author:** ![marcbey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d9b06d/32.png) [@marcbey](https://www.ruby-forum.com/u/marcbey)\
**Post date:** [May 9, 2009, 4:39pm UTC](https://www.ruby-forum.com/t/gem-path-problems-w-passenger-apache2/167537/4 "2009-05-09T16:39:26Z")

</div>

Check if you have forgotten to “symlink” the ruby executables? You  
have to do that regardless of whether you are using Ruby Enterprise or  
MRI. See the following article by Peter C… I am using Ruby  
Enterprise so I sylinked accordingly.

[http://www.rubyinside.com/how-to-install-a-ruby-18-stack-on-ubuntu-810-from-scratch-1566.html](http://www.rubyinside.com/how-to-install-a-ruby-18-stack-on-ubuntu-810-from-scratch-1566.html)

If you follow everything step-by-step, it should work. Generally, it  
is a missed step somewhere that creates such problems.

Bharat

---

<div class="post-metadata">

**Author:** ![marcbey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d9b06d/32.png) [@marcbey](https://www.ruby-forum.com/u/marcbey)\
**Post date:** [May 9, 2009, 4:39am UTC](https://www.ruby-forum.com/t/gem-path-problems-w-passenger-apache2/167537/5 "2009-05-09T04:39:35Z")

</div>

Are you using passenger’s ruby? Seems I remember reading that if you  
are you need to install gems via both the system-ruby and the  
passenger-ruby as they end up in different spots and passenger-ruby  
only looks for them in it’s own directory heirarchy.

-p
