[Redmine 3.0.4, Ruby 2.2.2p95 Windowsx64] rake cannot load such file -- actionpack-action_caching
Added by Eduardo Yáñez Parareda over 9 years ago
Hi, this is the first time I've installed Redmine on Windows and I'm having some troubles running rake tasks during the installation:
Bundle installation worked like a charm:
bundle install --without development test rmagick Using rake 10.4.2 Using i18n 0.7.0 Using json 1.8.3 Using minitest 5.7.0 Using thread_safe 0.3.5 Using tzinfo 1.2.2 Using activesupport 4.2.3 Using builder 3.2.2 Using erubis 2.7.0 Using mini_portile 0.6.2 Using nokogiri 1.6.6.2 Using rails-deprecated_sanitizer 1.0.3 Using rails-dom-testing 1.0.6 Using loofah 2.0.2 Using rails-html-sanitizer 1.0.2 Using actionview 4.2.3 Using rack 1.6.4 Using rack-test 0.6.3 Using actionpack 4.2.3 Using globalid 0.3.5 Using activejob 4.2.3 Using mime-types 2.6.1 Using mail 2.6.3 Using actionmailer 4.2.3 Using actionpack-action_caching 1.1.1 Using actionpack-xml_parser 1.0.2 Using activemodel 4.2.3 Using arel 6.0.2 Using activerecord 4.2.3 Using coderay 1.1.0 Using thor 0.19.1 Using railties 4.2.3 Using jquery-rails 3.1.3 Using mysql2 0.3.18 Using net-ldap 0.3.1 Using protected_attributes 1.1.3 Using ruby-openid 2.3.0 Using rack-openid 1.4.2 Using bundler 1.10.5 Using sprockets 3.2.0 Using sprockets-rails 2.3.2 Using rails 4.2.3 Using rbpdf 1.18.6 Using redcarpet 3.1.2 Using request_store 1.0.5 Using tzinfo-data 1.2015.5 Bundle complete! 27 Gemfile dependencies, 46 gems now installed. Gems in the groups development, test and rmagick were not installed. Use `bundle show [gemname]` to see where a bundled gem is installed.
Then comes the token generation...
bundle exec rake generate_secret_token --trace rake aborted! NameError: uninitialized constant ActionView::Helpers::ActiveModelHelper C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/gems/2.2.0/gems/actionview-4.2.3/lib/action_view/helpers.rb:40:in `<module:Helpers>' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/gems/2.2.0/gems/actionview-4.2.3/lib/action_view/helpers.rb:4:in `<module:ActionView>' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/gems/2.2.0/gems/actionview-4.2.3/lib/action_view/helpers.rb:3:in `<top (required)>' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/gems/2.2.0/gems/actionview-4.2.3/lib/action_view/base.rb:5:in `<top (required)>' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/gems/2.2.0/gems/actionview-4.2.3/lib/action_view/view_paths.rb:1:in `<top (required)>' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/gems/2.2.0/gems/actionpack-4.2.3/lib/abstract_controller/rendering.rb:4:in `<top (required)>' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/gems/2.2.0/gems/actionpack-4.2.3/lib/action_controller/base.rb:204:in `<class:Base>' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/gems/2.2.0/gems/actionpack-4.2.3/lib/action_controller/base.rb:164:in `<module:ActionController>' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/gems/2.2.0/gems/actionpack-4.2.3/lib/action_controller/base.rb:5:in `<top (required)>' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/gems/2.2.0/gems/actionpack-action_caching-1.1.1/lib/action_controller/action_caching.rb:13:in `<top (required)>' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/gems/2.2.0/gems/actionpack-action_caching-1.1.1/lib/actionpack/action_caching.rb:1:in `require' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/gems/2.2.0/gems/actionpack-action_caching-1.1.1/lib/actionpack/action_caching.rb:1:in `<top (required)>' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/gems/2.2.0/gems/bundler-1.10.5/lib/bundler/runtime.rb:85:in `require' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/gems/2.2.0/gems/bundler-1.10.5/lib/bundler/runtime.rb:85:in `rescue in block in require' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/gems/2.2.0/gems/bundler-1.10.5/lib/bundler/runtime.rb:68:in `block in require' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/gems/2.2.0/gems/bundler-1.10.5/lib/bundler/runtime.rb:61:in `each' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/gems/2.2.0/gems/bundler-1.10.5/lib/bundler/runtime.rb:61:in `require' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/gems/2.2.0/gems/bundler-1.10.5/lib/bundler.rb:134:in `require' C:/LocalPrograms/redmine-3.0.4/config/application.rb:5:in `<top (required)>' C:/LocalPrograms/redmine-3.0.4/Rakefile:5:in `require' C:/LocalPrograms/redmine-3.0.4/Rakefile:5:in `<top (required)>' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load_rakefile' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/2.2.0/rake/application.rb:689:in `raw_load_rakefile' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/2.2.0/rake/application.rb:94:in `block in load_rakefile' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/2.2.0/rake/application.rb:93:in `load_rakefile' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/2.2.0/rake/application.rb:77:in `block in run' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/2.2.0/rake/application.rb:75:in `run' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/bin/rake:33:in `<main>' LoadError: cannot load such file -- actionpack-action_caching C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/gems/2.2.0/gems/bundler-1.10.5/lib/bundler/runtime.rb:76:in `require' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/gems/2.2.0/gems/bundler-1.10.5/lib/bundler/runtime.rb:76:in `block (2 levels) in require' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/gems/2.2.0/gems/bundler-1.10.5/lib/bundler/runtime.rb:72:in `each' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/gems/2.2.0/gems/bundler-1.10.5/lib/bundler/runtime.rb:72:in `block in require' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/gems/2.2.0/gems/bundler-1.10.5/lib/bundler/runtime.rb:61:in `each' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/gems/2.2.0/gems/bundler-1.10.5/lib/bundler/runtime.rb:61:in `require' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/gems/2.2.0/gems/bundler-1.10.5/lib/bundler.rb:134:in `require' C:/LocalPrograms/redmine-3.0.4/config/application.rb:5:in `<top (required)>' C:/LocalPrograms/redmine-3.0.4/Rakefile:5:in `require' C:/LocalPrograms/redmine-3.0.4/Rakefile:5:in `<top (required)>' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load_rakefile' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/2.2.0/rake/application.rb:689:in `raw_load_rakefile' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/2.2.0/rake/application.rb:94:in `block in load_rakefile' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/2.2.0/rake/application.rb:93:in `load_rakefile' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/2.2.0/rake/application.rb:77:in `block in run' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/lib/ruby/2.2.0/rake/application.rb:75:in `run' C:/LocalPrograms/ruby-2.2.2-x64-mingw32/bin/rake:33:in `<main>'
It seems that rake cannot load the package actionpack-action_caching, but Bundler installed it as you can see on the package list.
Must I set any environment variable in order to get the packages found?