[Error] Uninitialized constant ActiveSupport::SecureRandom
Added by Rodrigo Rech over 12 years ago
Hi,
I'm following that wiki http://wiki.locaweb.com.br/pt-br/Como_instalar_o_Redmine_na_Locaweb
I'm from Brasil and I want to install Redmine in my host. But when I execute:
-bash-4.1$ rake generate_session_store --trace(in /home/storage/2/69/a2/sultech/rails_apps/redmine)
- Invoke generate_session_store (first_time)
- Invoke config/initializers/session_store.rb (first_time)
- Execute config/initializers/session_store.rb
rake aborted!
uninitialized constant ActiveSupport::SecureRandom
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:276:in `load_missing_constant'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:468:in `const_missing'
/home/storage/2/69/a2/sultech/rails_apps/redmine/lib/tasks/initializers.rake:5
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19
GEMS:
- LOCAL GEMS ***
actionmailer (2.3.11)
actionpack (2.3.11)
activemodel (3.1.3)
activerecord (2.3.11)
activeresource (2.3.11)
activesupport (3.1.3, 2.3.11)
arel (2.2.1)
builder (3.0.0)
bundler (1.0.21)
cgi_multipart_eof_fix (2.5.0)
daemons (1.1.5)
erubis (2.7.0)
fastthread (1.0.7)
gem_plugin (0.2.3)
hike (1.2.1)
i18n (0.6.0, 0.4.2)
json (1.6.4)
mail (2.3.0)
mime-types (1.17.2)
mongrel (1.1.5)
multi_json (1.0.4)
polyglot (0.3.3)
rack (1.1.1)
rack-cache (1.1)
rack-mount (0.8.3)
rack-ssl (1.3.2)
rack-test (0.6.1)
rails (2.3.11)
railties (3.1.3)
rake (0.8.7)
rdoc (3.12, 2.4.2)
rubygems-update (1.7.0, 1.6.0)
sprockets (2.0.3)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
tzinfo (0.3.31)
Replies (3)
RE: [Error] Uninitialized constant ActiveSupport::SecureRandom
-
Added by Etienne Massip over 12 years ago
Try removing remains from RoR 3.1.3 (ActiveModel & ActiveSupport)?
RE: [Error] Uninitialized constant ActiveSupport::SecureRandom
-
Added by Rodrigo Rech over 12 years ago
I removed remains from RoR 3.1.3 (ActiveModel & ActiveSupport)... but nothing changed...
RE: [Error] Uninitialized constant ActiveSupport::SecureRandom
-
Added by Etienne Massip over 12 years ago
My bad, didn't see the line /usr/lib/ruby/gems/1.8/gems/ activesupport-2.1.1 /lib/active_support/dependencies.rb:276:in `load_missing_constant'; your Redmine setup is using this old rails 2.1.1 version, I don't know why :|