Ruby 1.9.1-p129 + ActiveRecord 2.3.2

J

Joseph Toscano

Hi,

I've been using Ruby 1.8.6 + ActiveRecord 2.1.2 for a long time with great success. However, I would like to upgrade to Ruby 1.9 and the latest version of ActiveRecord.

To this end, I downloaded, compiled, and installed Ruby 1.9.1-p129, and subsequently installed the ActiveRecord 2.3.2 gem (via "gem install rails").

Unfortunately, when I try to "require 'activerecord'", Ruby throws the following exception:

LoadError: no such file to load -- i18n/backend/simple
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:5:in `require'

I'm left scratching my head: it seems as though "gem" failed to install a dependency of activerecord. Installing the i18n gem merely changes the above exception into a different one:

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:in `<class:Simple>'
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:8:in `<module:Backend>'
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:7:in `<module:I18n>'

Is there a solution to this problem? Perhaps there are some known incompatibilities between Ruby 1.9.1-p129 and ActiveRecord 2.3.2? I'd appreciate any assistance you can offer.

Thanks,

--JT
http://zhaymusic.com/
 
R

Roger Pack

LoadError: no such file to load -- i18n/backend/simple
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:5:in
`require'

how bizarre.
Works here for me 2.3.2

C:\ruby19\bin>irb=> "ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-mingw32]"

I think I may have run into something like that once where I was going
from one rails version to the next--do "fresh" rails apps do that? Do
you have other gem versions of rails installed, or in /vendor? There
might be a conflict.
Cheers!
-=r
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top