According to its release notes, Rails 2.3.2 should run fine on Ruby
1.9.1. Since I’ve read about substantial performance gains from 1.9, I
decided to upgrade.
I built and installed Ruby 1.9.1-p129 on my server (Ubuntu 9.04, amd64
CPU) without any problems. Similarly, I was able to install Rails
2.3.2 via “gem” without any problems.
Unfortunately, Rails itself fails to function. Running the “rails”
script fails with the following error:
internal:gem_prelude:234:in `push_gem_version_on_load_path’: Could
not find RubyGem activesupport (>= 0) (Gem::LoadError)
And trying to require one of the component gems also fails, as
irb(main):001:0> require “activerecord”
LoadError: no such file to load – i18n/backend/simple
Installing the “i18n” gem merely causes further problems, as follows:
irb(main):001:0> require ‘activerecord’
NoMethodError: undefined method
alias_method_chain' for I18n::Backend::Simple:Class from /opt/ruby-1.9.1-p129/lib/ruby/gems/1.9.1/gems/ activerecord-2.3.2/lib/active_record/i18n_interpolation_deprecation.rb: 23:inclass:Simple’
What follows is a list of the installed gems on my system:
[zhaytee@orzhova] ~$ gem list
*** LOCAL GEMS ***
Is Rails 2.3.2 simply not compatible with 1.9.1, despite what the
release notes say? Any help would be greatly appreciated.