Passenger no such file to load -- fastthread

Hi,

Passenger does not see fastthread gem even though irb sees it.
Any help appreciated.

root@mymachine:/home/user1# tail /var/log/apache2/error.log

[Wed Jun 10 19:12:29 2009] [notice] Apache/2.2.11 (Ubuntu) DAV/2
SVN/1.5.4 Phusion_Passenger/2.2.2 mod_ssl/2.2.11 OpenSSL/0.9.8g
configured – resuming normal operations
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require': no such file to load -- fastthread (LoadError) from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:inrequire’
from /usr/lib/ruby/1.8/phusion_passenger/utils.rb:27
from /usr/lib/phusion_passenger/passenger-spawn-server:53:in `require’
from /usr/lib/phusion_passenger/passenger-spawn-server:53

root@mymachine:/home/user1# gem list

*** LOCAL GEMS ***

actionmailer (2.3.2)
actionpack (2.3.2)
activerecord (2.3.2)
activeresource (2.3.2)
activesupport (2.3.2)
fastthread (1.0.7)
rails (2.3.2)
rake (0.8.7)

root@mymachine:/home/user1# irb

irb(main):001:0> require ‘fastthread’
=> true
irb(main):002:0>

I got it working, I had the GEM_PATH and GEM_HOME inherited from user1
since i was doing “su” insted of “su -” when logging to root account.

M.