Forum: Ruby on Rails Rails app exception "can't activate active support"

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
sales (Guest)
on 2005-11-16 17:20
(Received via mailing list)
I have gotten several rails apps running under Apache.

However today when I tried to run them I get exceptions like this in the
http error_log:

sh-2.05b$ tail /var/log/httpd/error_log
/usr/lib/ruby/site_ruby/1.8/rubygems.rb:144:in `activate': can't
activate
active
support (= 1.1.1), already activated activesupport-1.2.3]
(Gem::Exception)
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:162:in `activate'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:161:in `each'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:161:in `activate'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:23:in `requi
re'
from /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active_support/
dependencies.rb:214:in `require'
from /Library/WebServer/Documents/Store/Inventory/public/../config/envir
onment.rb:52
from /Library/WebServer/Documents/Store/Inventory/public/dispatch.cgi:3:
in `require'
from /Library/WebServer/Documents/Store/Inventory/public/dispatch.cgi:3
[Wed Nov 16 09:59:12 2005] [error] [client
141.129.1.98<http://141.129.1.98>]
Premature end of script
headers: /

Anyone have any idea what this means?
Rick W. (Guest)
on 2005-11-16 19:26
sales wrote:
> I have gotten several rails apps running under Apache.
>
> However today when I tried to run them I get exceptions like this in the
> http error_log:
>
> sh-2.05b$ tail /var/log/httpd/error_log
> /usr/lib/ruby/site_ruby/1.8/rubygems.rb:144:in `activate': can't
> activate
> active
> support (= 1.1.1), already activated activesupport-1.2.3]
> (Gem::Exception)
> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:162:in `activate'
> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:161:in `each'
> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:161:in `activate'
> from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:23:in `requi
> re'
> from /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active_support/
> dependencies.rb:214:in `require'
> from /Library/WebServer/Documents/Store/Inventory/public/../config/envir
> onment.rb:52
> from /Library/WebServer/Documents/Store/Inventory/public/dispatch.cgi:3:
> in `require'
> from /Library/WebServer/Documents/Store/Inventory/public/dispatch.cgi:3
> [Wed Nov 16 09:59:12 2005] [error] [client
> 141.129.1.98<http://141.129.1.98>]
> Premature end of script
> headers: /
>
> Anyone have any idea what this means?

Here is a little more info.

I had installed the rails gem 1 or 2 weeks ago.  Then yesterday, I was
fooling around with some ruby code and had to download the actionrecord
gem because it apparently could not find the one included with rails.

Well, the actionrecord download screwed up something (path etc.?) and no
rails app would then work giving the exception above.

I re-installed the rails gem and now everything works fine again.
This topic is locked and can not be replied to.