redmine [trunk:13994] - ruby2.2.0p43 - rake error

Added by Andreas Baumgärtner over 2 years ago

hi,

trying to prepare an up2date setup of redmine ...

redmine svn trunk works fine with ruby 2.1.5:
ruby 2.1.5p291 (2015-02-09 revision 49548) [x64-mingw32]
from the redmine information page

Environment:
  Redmine version                2.6.1.devel
  Ruby version                   2.1.5-p291 (2015-02-09) [x64-mingw32]
  Rails version                  4.2.0
  Environment                    production
  Database adapter               Mysql2

but I can't get the exact same redmine version to run with ruby 2.2.0:
ruby 2.2.0p43 (2015-02-06 revision 49530) [x64-mingw32]

both ruby versions were compiled with the same env and same configure options:
Windows 7 Ultimate DE, gcc 4.9.2-3

configure --prefix="c:/apps/redmine_dev/ruby" --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --disable-install-doc --enable-shared

Redmine Setup:
gem install bundle
gem install mysql2 -- "--with-mysql-dir=c:/apps/redmine_dev/mysql-5.6.22-winx64"
bundle install --without development test rmagick

rake outputs the following stacktrace:

C:\apps\redmine_dev\bin>rake generate_secret_token --trace -v
rake aborted!
NameError: uninitialized constant ActionView::Helpers::ActiveModelHelper
C:/apps/redmine_dev/ruby/lib/ruby/gems/2.2.0/gems/actionview-4.2.0/lib/action_view/helpers.rb:40:in `<module:Helpers>'
C:/apps/redmine_dev/ruby/lib/ruby/gems/2.2.0/gems/actionview-4.2.0/lib/action_view/helpers.rb:4:in `<module:ActionView>'
C:/apps/redmine_dev/ruby/lib/ruby/gems/2.2.0/gems/actionview-4.2.0/lib/action_view/helpers.rb:3:in `<top (required)>'
C:/apps/redmine_dev/ruby/lib/ruby/gems/2.2.0/gems/actionview-4.2.0/lib/action_view/base.rb:5:in `<top (required)>'
C:/apps/redmine_dev/ruby/lib/ruby/gems/2.2.0/gems/actionview-4.2.0/lib/action_view/view_paths.rb:1:in `<top (required)>'
C:/apps/redmine_dev/ruby/lib/ruby/gems/2.2.0/gems/actionpack-4.2.0/lib/abstract_controller/rendering.rb:4:in `<top (required)>'
C:/apps/redmine_dev/ruby/lib/ruby/gems/2.2.0/gems/actionpack-4.2.0/lib/action_controller/base.rb:204:in `<class:Base>'
C:/apps/redmine_dev/ruby/lib/ruby/gems/2.2.0/gems/actionpack-4.2.0/lib/action_controller/base.rb:164:in `<module:ActionController>'
C:/apps/redmine_dev/ruby/lib/ruby/gems/2.2.0/gems/actionpack-4.2.0/lib/action_controller/base.rb:5:in `<top (required)>'
C:/apps/redmine_dev/ruby/lib/ruby/gems/2.2.0/gems/actionpack-action_caching-1.1.1/lib/action_controller/action_caching.rb:13:in `<top (required)>'
C:/apps/redmine_dev/ruby/lib/ruby/gems/2.2.0/gems/actionpack-action_caching-1.1.1/lib/actionpack/action_caching.rb:1:in `require'
C:/apps/redmine_dev/ruby/lib/ruby/gems/2.2.0/gems/actionpack-action_caching-1.1.1/lib/actionpack/action_caching.rb:1:in `<top (required)>'
C:/apps/redmine_dev/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.7.13/lib/bundler/runtime.rb:85:in `require'
C:/apps/redmine_dev/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.7.13/lib/bundler/runtime.rb:85:in `rescue in block in require'
C:/apps/redmine_dev/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.7.13/lib/bundler/runtime.rb:68:in `block in require'
C:/apps/redmine_dev/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.7.13/lib/bundler/runtime.rb:61:in `each'
C:/apps/redmine_dev/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.7.13/lib/bundler/runtime.rb:61:in `require'
C:/apps/redmine_dev/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.7.13/lib/bundler.rb:134:in `require'
C:/apps/redmine_dev/bin/config/application.rb:5:in `<top (required)>'
C:/apps/redmine_dev/ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
C:/apps/redmine_dev/ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
C:/apps/redmine_dev/bin/Rakefile:5:in `<top (required)>'
C:/apps/redmine_dev/ruby/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load'
C:/apps/redmine_dev/ruby/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load_rakefile'
C:/apps/redmine_dev/ruby/lib/ruby/2.2.0/rake/application.rb:689:in `raw_load_rakefile'
C:/apps/redmine_dev/ruby/lib/ruby/2.2.0/rake/application.rb:94:in `block in load_rakefile'
C:/apps/redmine_dev/ruby/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
C:/apps/redmine_dev/ruby/lib/ruby/2.2.0/rake/application.rb:93:in `load_rakefile'
C:/apps/redmine_dev/ruby/lib/ruby/2.2.0/rake/application.rb:77:in `block in run'
C:/apps/redmine_dev/ruby/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
C:/apps/redmine_dev/ruby/lib/ruby/2.2.0/rake/application.rb:75:in `run'
C:/apps/redmine_dev/ruby/bin/rake.bat:40:in `<main>'
LoadError: cannot load such file -- actionpack-action_caching
C:/apps/redmine_dev/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.7.13/lib/bundler/runtime.rb:76:in `require'
C:/apps/redmine_dev/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.7.13/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
C:/apps/redmine_dev/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.7.13/lib/bundler/runtime.rb:72:in `each'
C:/apps/redmine_dev/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.7.13/lib/bundler/runtime.rb:72:in `block in require'
C:/apps/redmine_dev/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.7.13/lib/bundler/runtime.rb:61:in `each'
C:/apps/redmine_dev/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.7.13/lib/bundler/runtime.rb:61:in `require'
C:/apps/redmine_dev/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.7.13/lib/bundler.rb:134:in `require'
C:/apps/redmine_dev/bin/config/application.rb:5:in `<top (required)>'
C:/apps/redmine_dev/ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
C:/apps/redmine_dev/ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
C:/apps/redmine_dev/bin/Rakefile:5:in `<top (required)>'
C:/apps/redmine_dev/ruby/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load'
C:/apps/redmine_dev/ruby/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load_rakefile'
C:/apps/redmine_dev/ruby/lib/ruby/2.2.0/rake/application.rb:689:in `raw_load_rakefile'
C:/apps/redmine_dev/ruby/lib/ruby/2.2.0/rake/application.rb:94:in `block in load_rakefile'
C:/apps/redmine_dev/ruby/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
C:/apps/redmine_dev/ruby/lib/ruby/2.2.0/rake/application.rb:93:in `load_rakefile'
C:/apps/redmine_dev/ruby/lib/ruby/2.2.0/rake/application.rb:77:in `block in run'
C:/apps/redmine_dev/ruby/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
C:/apps/redmine_dev/ruby/lib/ruby/2.2.0/rake/application.rb:75:in `run'
C:/apps/redmine_dev/ruby/bin/rake.bat:40:in `<main>'

C:\apps\redmine_dev\bin>

Any help is really appreciated ...

Regards,
Andreas

Replies (7)

RE: redmine [trunk:13994] - ruby2.2.0p43 - rake error - Added by Dmitriy Petrov over 2 years ago

Hi! I'm issued the same problem. Did you find the way to resolve it?

RE: redmine [trunk:13994] - ruby2.2.0p43 - rake error - Added by Jasen Burkett over 2 years ago

You may want to also add this issue to the 'issues' section of redme.org site. IF you think its an actual fault with redmine. I have done that a couple of times and rec. some really good help.

RE: redmine [trunk:13994] - ruby2.2.0p43 - rake error - Added by Dmitriy Petrov over 2 years ago

It looks more like a ruby problem. Unfortunately, I'm not very familiar with ruby and all those infrastructure - gems, rails, rake and so on.

RE: redmine [trunk:13994] - ruby2.2.0p43 - rake error - Added by Christopher Antila over 2 years ago

Looks like you're out of luck. As per the instructions on the RedmineInstall page, " Redmine 2.x does not support Ruby 2.2. Redmine 3.0 supports Ruby 2.2."

RE: redmine [trunk:13994] - ruby2.2.0p43 - rake error - Added by Dmitriy Petrov over 2 years ago

It was 3.0 redmine version what I tried.

RE: redmine [trunk:13994] - ruby2.2.0p43 - rake error - Added by Christopher Antila over 2 years ago

Dmitriy, you may be having the same problem as me: http://www.redmine.org/boards/2/topics/45991

Would you mind checking whether your stack trace, installed versions, and OS match mine, and posting that in the other thread? The creator of this thread was using Redmine 2.6.1.devel, so the proper resolution for him is "don't use Ruby 2.2." For us, we don't know yet.

Thanks!

(1-7/7)