Project

General

Profile

Newby help - undefined method `name' for "i18n":String

Added by Jesse Reynolds about 13 years ago

Hello

I am following the redmine install instructions. I have ruby 1.8.7 p334, rubygems 1.8.5, rake 0.8.7, i18n 0.4.2, but I get the following error when trying to run

$ RAILS_ENV=production rake db:migrate
...
undefined method `name' for "i18n":String

What silly / obvious thing I have done wrong?

I also get a large number of warnings like the following:

NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /opt/redmine-1.2.1/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:21.

This is with Redmine 1.2.1, other version info below...

redmine@vestal1 /opt/redmine $ ruby --version
ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-solaris2.9]

redmine@vestal1 /opt/redmine $ rake --version
rake, version 0.8.7

redmine@vestal1 /opt/redmine $ gem --version
1.8.5

redmine@vestal1 /opt/redmine $ gem list --local

  • LOCAL GEMS ***

i18n (0.4.2)
mysql (2.8.1)
rubygems-update (1.8.5)

OS: OpenSolaris 2009-06 with Ruby from OpenCSW.org

Thank you
Jesse


Replies (3)

RE: Newby help - undefined method `name' for "i18n":String - Added by Jesse Reynolds about 13 years ago

OK, I see I'm using a too recent rubygems (1.8.5) whereas:

RubyGems 1.3.7 or higher is required with following limitations :
Rails 2.3.5 will fail with RubyGems 1.5.0 or later, stick to previous versions of RubyGems !
Rails 2.3.11 will fail with RubyGems 1.7.0 or later, stick to previous versions of RubyGems !

I'll remove my rubygems and install 1.6.2 from here then:

RE: Newby help - undefined method `name' for "i18n":String - Added by Jesse Reynolds about 13 years ago

So if you paste a URL in this forum it thinks it's spam and logs you out? Ouch.

    (1-3/3)