Project

General

Profile

undefined method `install_gem_spec_stubs' for #<Rails::Initializer

Added by Phillip Lahman over 15 years ago

Greetings,

I mis-posted this to "Open Discussion" the first time.

I am a ruby-newbie and I have this problem:

cd /opt/redmine-0.7.3/
rootsoyo933 /opt/redmine-0.7.3]#
ruby script/server
./script/../config/../vendor/rails/railties/lib/initializer.rb:49:in `send': undefined method `install_gem_spec_stubs' for #<Rails::Initializer:0x2b955ea30c68> (NoMethodError)
from ./script/../config/../vendor/rails/railties/lib/initializer.rb:49:in `run'
from ./script/../config/boot.rb:46:in `load_initializer'
from ./script/../config/boot.rb:38:in `run'
from ./script/../config/boot.rb:11:in `boot!'
from ./script/../config/boot.rb:109
from script/server:2:in `require'
from script/server:2

Here are some details about the environment:

rootsoyo933 ~]#
rake -V
rake, version 0.8.1
rootsoyo933 ~]#
ruby -v
ruby 1.8.6 (2008-08-08 patchlevel 286) [x86_64-linux]
rootsoyo933 ~]#
rails -v
Rails 2.1.1
rootsoyo933 ~]#
uname -a
Linux soyo933.linuxhome.org 2.6.18-92.1.10.el5 #1 SMP Tue Aug 5 07:42:41 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
rootsoyo933 ~]#
ootsoyo933 ~]#
gem list

  • LOCAL GEMS ***

actionmailer (2.1.1, 2.1.0)
actionpack (2.1.1, 2.1.0)
activerecord (2.1.1, 2.1.0)
activeresource (2.1.1, 2.1.0)
activesupport (2.1.1, 2.1.0)
rails (2.1.1)
rake (0.8.1)
rubygems-update (1.2.0)

I think/hope I have followed the instructions from redmine.org and rubyonrails.org.

TIA for the clue or solution(s).


Replies (2)

RE: undefined method `install_gem_spec_stubs' for #<Rails::Initializer - Added by Felipe Campo over 15 years ago

Try with the version 2.0.2 in your 2.1.0 gems, and freeze to 2.0.2

RE: undefined method `install_gem_spec_stubs' for #<Rails::Initializer - Added by T Obu over 15 years ago

This happened to me with a recent redmine trunk. vendor/rails was symlinked to rails 2.0.2 as shipped by debian. Switching to rails 2.1.1 (as a rubygem) ensured the method was defined.

    (1-2/2)