2009/12/4 Matt Jones <[email protected]>

> Why is Rails 2.1.0 frozen in /home/srdan/rails/authlogic_example/
> vendor/rails? That's what's causing the problem. The error is caused
> by authlogic specifying a dependency on activesupport, which wasn't
> properly stubbed in the gem index back in 2.1.0 (see
> https://rails.lighthouseapp.com/projects/8994/tickets/1107 for more
> details).
>
> --Matt Jones
>
> On Dec 2, 3:20 pm, Srdan Dukic <[email protected]> wrote:
> > The output with the --trace commmand is as follows:
> >
> > sr...@srdan-laptop:~/rails/authlogic_example$ sudo rake --trace
> gems:install
> > (in /home/srdan/rails/authlogic_example)
> > ** Invoke gems:install (first_time)
> > ** Invoke gems:base (first_time)
> > ** Execute gems:base
> > ** Invoke environment (first_time)
> > ** Execute environment
> > rake aborted!
> > can't activate activesupport (>= 0, runtime), already activated
> > activesupport-2.1.0
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
>
Hi,

>From the link that you sent, the fix seems to be to add the line:

Gem.source_index.add_spec(Gem.loaded_specs[stub])

To 'initializer.rb'. I've tried adding this line to
'/var/lib/gems/1.8/gems/rails-2.3.4/lib/initializer.rb'.

Adding it to the file gave the following error:

$ rake gems:install --trace
(in /home/srdan/rails/authlogic_example)
** Invoke gems:install (first_time)
** Invoke gems:base (first_time)
** Execute gems:base
** Invoke environment (first_time)
** Execute environment
rake aborted!
can't activate activesupport (>= 0, runtime), already activated
activesupport-2.1.0
/usr/lib/ruby/1.8/rubygems.rb:149:in `activate'
/usr/lib/ruby/1.8/rubygems.rb:165:in `activate'
/usr/lib/ruby/1.8/rubygems.rb:164:in `each'
/usr/lib/ruby/1.8/rubygems.rb:164:in `activate'
/usr/lib/ruby/1.8/rubygems.rb:49:in `gem'
/home/srdan/rails/authlogic_example/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:32:in
`add_load_paths'
/home/srdan/rails/authlogic_example/vendor/rails/activesupport/lib/active_support/inflector.rb:283:in
`to_proc'
/home/srdan/rails/authlogic_example/config/../vendor/rails/railties/lib/initializer.rb:242:in
`each'
/home/srdan/rails/authlogic_example/config/../vendor/rails/railties/lib/initializer.rb:242:in
`add_gem_load_paths'
/home/srdan/rails/authlogic_example/config/../vendor/rails/railties/lib/initializer.rb:115:in
`process'
/home/srdan/rails/authlogic_example/config/../vendor/rails/railties/lib/initializer.rb:93:in
`send'
/home/srdan/rails/authlogic_example/config/../vendor/rails/railties/lib/initializer.rb:93:in
`run'
/home/srdan/rails/authlogic_example/config/environment.rb:13
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
/home/srdan/rails/authlogic_example/vendor/rails/activesupport/lib/active_support/dependencies.rb:509:in
`require'
/home/srdan/rails/authlogic_example/vendor/rails/activesupport/lib/active_support/dependencies.rb:354:in
`new_constants_in'
/home/srdan/rails/authlogic_example/vendor/rails/activesupport/lib/active_support/dependencies.rb:509:in
`require'
/home/srdan/rails/authlogic_example/vendor/rails/railties/lib/tasks/misc.rake:3
/usr/lib/ruby/1.8/rake.rb:546:in `call'
/usr/lib/ruby/1.8/rake.rb:546:in `execute'
/usr/lib/ruby/1.8/rake.rb:541:in `each'
/usr/lib/ruby/1.8/rake.rb:541:in `execute'
/usr/lib/ruby/1.8/rake.rb:508:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:501:in `synchronize'
/usr/lib/ruby/1.8/rake.rb:501:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:494:in `invoke'
/home/srdan/rails/authlogic_example/vendor/rails/railties/lib/tasks/gems.rake:15
/usr/lib/ruby/1.8/rake.rb:546:in `call'
/usr/lib/ruby/1.8/rake.rb:546:in `execute'
/usr/lib/ruby/1.8/rake.rb:541:in `each'
/usr/lib/ruby/1.8/rake.rb:541:in `execute'
/usr/lib/ruby/1.8/rake.rb:508:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:501:in `synchronize'
/usr/lib/ruby/1.8/rake.rb:501:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:518:in `invoke_prerequisites'
/usr/lib/ruby/1.8/rake.rb:1183:in `each'
/usr/lib/ruby/1.8/rake.rb:1183:in `send'
/usr/lib/ruby/1.8/rake.rb:1183:in `each'
/usr/lib/ruby/1.8/rake.rb:515:in `invoke_prerequisites'
/usr/lib/ruby/1.8/rake.rb:507:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:501:in `synchronize'
/usr/lib/ruby/1.8/rake.rb:501:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:494:in `invoke'
/usr/lib/ruby/1.8/rake.rb:1931:in `invoke_task'
/usr/lib/ruby/1.8/rake.rb:1909:in `top_level'
/usr/lib/ruby/1.8/rake.rb:1909:in `each'
/usr/lib/ruby/1.8/rake.rb:1909:in `top_level'
/usr/lib/ruby/1.8/rake.rb:1948:in `standard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:1903:in `top_level'
/usr/lib/ruby/1.8/rake.rb:1881:in `run'
/usr/lib/ruby/1.8/rake.rb:1948:in `standard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:1878:in `run'
/usr/bin/rake:28

Could you explain a bit more what you mean when you say that Rails is
'frozen'? Do you mean the version is frozen? If so, how can i unfreeze the
version?

Thank you

-- 
Srđan Đukić

--

You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.


Reply via email to