Configuring Passenger to Use Local Gems

software development

#1

Hi,

I am attempting to configure a Rails 2.1 application. I have followed the directions given at:
http://www.nateclark.com/articles/2006/10/20/dreamhost-your-own-packages-and-gems

I currently have a gem repository at:
/home/username/.gems

I also have a local copy of ruby installed in:
/home/username/.packages

I have confirmed (via which) that ‘rails’ and ‘ruby’ point to the proper installations.

I have configured the GEM_PATH and GEM_HOME environment variables as:

GEM_PATH=$HOME/.gems:/usr/lib/ruby/gems/1.8
GEM_HOME=$HOME/.gems

I have also set the GEM_PATH explicitly in environment.rb by placing a line:
ENV[‘GEM_PATH’] = /home/username/.gems:/usr/lib/ruby/gems/1.8

When I attempt to access my application, though, Passenger returns an error claiming that it cannot find the Rails 2.1 package (I assume because it is using the wrong installation)

Does anybody a) Know a solution or b) Know a method to determine what gem and ruby version Passenger is using?

Thanks,
Scott

(Note that wherever there is “username” in this e-mail I have used my own user name)