I’m just starting using Apache with Rails and the first issue that I
had to resolve was the following error message:
“Application error. Rails application failed to start properly”
“Cannot find gem for Rails =18.104.22.168” (etc)
I think I read 1000 posts about this error, and the only thing that
seemed to be working for me was to freeze rails. Why do I need to do
that? From all the reading that I’ve been doing on the Internet I
gather you only have to do this when your web application is hosted on
a shared server. For now, I’m just learning Apache and I’m running
both on a local development Linux box.
RAILS_GEM_VERSION is 1.2.5 in environment.rb.
If I run “gem list | grep rails”, I get "rails (1.2.5, 1.2.1). (At
some point I only had 1.2.1 installed and RAILS_GEM_VERSION was also
1.2.1 and I still had the same problem).
Webrick works normally.
Another question that I have is why does the error message mention
version 22.214.171.124? Where is the “.0” coming from? I found this logic in
boot.rb and I don’t understand why it is there. Older versions of
Rails did not generate the “.0” at the end of the version.