Forum: Ruby on Rails Gem path problems w/ Passenger+Apache2

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Marc B. (Guest)
on 2009-05-09 05:14
(Received via mailing list)
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


Conrad T. (Guest)
on 2009-05-09 05:18
(Received via mailing list)
On Fri, May 8, 2009 at 6:13 PM, Marc B. <removed_email_address@domain.invalid>

> passenger 2.2.2
> Apache 2.2.11
> Thanks,
> m
Can you provide some additional details about the platform you're using
the actual error message?

Marc B. (Guest)
on 2009-05-09 06:11
(Received via mailing list)
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
to chown www-data:www-data on its files.  I did the same on
files but no joy.

Again, all work perfectly well under webbrick.


Philip H. (Guest)
on 2009-05-09 06:39
(Received via mailing list)
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.

Bharat R. (Guest)
on 2009-05-09 18:39
(Received via mailing list)
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.

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

This topic is locked and can not be replied to.