# Passenger problem: "Missing the Rails 2.3.5 gem"

**URL:** <https://www.ruby-forum.com/t/passenger-problem-missing-the-rails-2-3-5-gem/184924>\
**Category:** Deployment\
**Created:** [March 10, 2010, 1:59pm UTC](https://www.ruby-forum.com/t/passenger-problem-missing-the-rails-2-3-5-gem/184924 "2010-03-10T13:59:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![valafar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/d07c76/32.png) [@valafar](https://www.ruby-forum.com/u/valafar)\
**Post date:** [March 10, 2010, 1:59pm UTC](https://www.ruby-forum.com/t/passenger-problem-missing-the-rails-2-3-5-gem/184924/1 "2010-03-10T13:59:59Z")

</div>

I’m using RVM to handle basicly two Rubies, REE and 1.9.1. I want to  
make sure that my Rails app works with both. For some reason it seems  
that Passenger can’t find my 1.9.1 Rails gem located in  
/home/myhome/.rvm/gems/ruby-1.9.1-p378/gems/rails-2.3.5. REE version of  
Rails gem is located in  
/home/myhome/.rvm/gems/ree-1.8.7-2010.01/gems/rails-2.3.5.

“Missing the Rails 2.3.5 gem. Please `gem install -v=2.3.5 rails`,  
update your RAILS\_GEM\_VERSION setting in config/environment.rb for the  
Rails version you do have installed, or comment out RAILS\_GEM\_VERSION to  
use the latest version installed.”

I have following lines in Apache conf files:  
/etc/apache2/mods-enabled/passenger.load: “LoadModule passenger\_module  
/home/pkivikan/.rvm/gems/ruby-1.9.1-p378/gems/passenger-2.2.11/ext/apache2/mod\_passenger.so”

/etc/apache2/mods-enabled/passenger.conf: “PassengerRoot  
/home/pkivikan/.rvm/gems/ruby-1.9.1-p378/gems/passenger-2.2.11”  
“PassengerRuby /home/pkivikan/.rvm/rubies/ruby-1.9.1-p378/bin/ruby”

script/server (webrick) also loads Rails properly with 1.9.1, so why  
isn’t Passenger loading Rails when using Ruby 1.9.1?
