Forum: Rails deployment Passenger problem: "Missing the Rails 2.3.5 gem"

Posted by Petri Kivikangas (valafar)
on 2010-03-10 13:59
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?
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.