0

我正在尝试安装一个 Ruby 应用程序(EasyRedmine)并且安装程序在各个点不断崩溃并出现错误“LoadError:无法加载此类文件 - 枚举器”我认为问题是未加载枚举器模块,但我写了一个小 hello world 程序,它需要它并且加载得很好。我自己对 Ruby 不是很熟悉,所以我希望有人可以帮助我至少缩小从堆栈跟踪中抛出错误的模块的范围。这是我看到的输出:

  STD: LoadError: cannot load such file -- enumerator
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `block in require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in `load_dependency'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/vpim-13.11.11/lib/vpim/property/recurrence.rb:10:in `<top (required)>'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `block in require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in `load_dependency'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/vpim-13.11.11/lib/vpim/vevent.rb:20:in `<top (required)>'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `block in require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in `load_dependency'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/vpim-13.11.11/lib/vpim/icalendar.rb:15:in `<top (required)>'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `block in require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in `load_dependency'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/vpim-13.11.11/lib/vpim/attachment.rb:10:in `<top (required)>'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `block in require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in `load_dependency'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/vpim-13.11.11/lib/vpim/vcard.rb:11:in `<top (required)>'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `block in require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in `load_dependency'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/ruby-msg-1.5.2/lib/mapi/convert/contact.rb:2:in `<top (required)>'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `block in require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in `load_dependency'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/ruby-msg-1.5.2/lib/mapi/convert.rb:5:in `<top (required)>'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `block in require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in `load_dependency'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/ruby-msg-1.5.2/lib/mapi.rb:5:in `<top (required)>'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `block in require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in `load_dependency'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/ruby-msg-1.5.2/lib/mapi/msg.rb:2:in `<top (required)>'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `block in require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in `load_dependency'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `require'
  STD: /tmp/d20220116-64334-1fi5jlq/plugins/easyproject/easy_plugins/easy_extensions/patches/plugins/mapi_patch.rb:1:in `<top (required)>'
  STD: /tmp/d20220116-64334-1fi5jlq/plugins/easyproject/init.rb:231:in `load'
  STD: /tmp/d20220116-64334-1fi5jlq/plugins/easyproject/init.rb:231:in `block in register'
  STD: /tmp/d20220116-64334-1fi5jlq/plugins/easyproject/init.rb:231:in `each'
  STD: /tmp/d20220116-64334-1fi5jlq/plugins/easyproject/init.rb:231:in `register'
  STD: /tmp/d20220116-64334-1fi5jlq/plugins/easyproject/easy_plugins/easy_extensions/init.rb:1:in `<top (required)>'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `block in require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in `load_dependency'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `require'
  STD: /tmp/d20220116-64334-1fi5jlq/plugins/easyproject/init.rb:447:in `require_plugin_init_file'
  STD: /tmp/d20220116-64334-1fi5jlq/plugins/easyproject/init.rb:437:in `load_plugin_init'
  STD: /tmp/d20220116-64334-1fi5jlq/plugins/easyproject/init.rb:389:in `block in init!'
  STD: /tmp/d20220116-64334-1fi5jlq/plugins/easyproject/init.rb:388:in `each'
  STD: /tmp/d20220116-64334-1fi5jlq/plugins/easyproject/init.rb:388:in `init!'
  STD: /tmp/d20220116-64334-1fi5jlq/plugins/easyproject/init.rb:462:in `<top (required)>'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `block in require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in `load_dependency'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `require'
  STD: /tmp/d20220116-64334-1fi5jlq/config/initializers/22-change_plugins_order.rb:15:in `load'
  STD: /tmp/d20220116-64334-1fi5jlq/config/initializers/30-redmine.rb:20:in `<top (required)>'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:326:in `load'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:326:in `block in load'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in `load_dependency'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:326:in `load'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/railties-6.1.4.1/lib/rails/engine.rb:681:in `block in load_config_initializer'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/notifications.rb:205:in `instrument'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/railties-6.1.4.1/lib/rails/engine.rb:680:in `load_config_initializer'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/railties-6.1.4.1/lib/rails/engine.rb:634:in `block (2 levels) in <class:Engine>'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/railties-6.1.4.1/lib/rails/engine.rb:633:in `each'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/railties-6.1.4.1/lib/rails/engine.rb:633:in `block in <class:Engine>'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/railties-6.1.4.1/lib/rails/initializable.rb:32:in `instance_exec'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/railties-6.1.4.1/lib/rails/initializable.rb:32:in `run'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/railties-6.1.4.1/lib/rails/initializable.rb:61:in `block in run_initializers'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/railties-6.1.4.1/lib/rails/initializable.rb:50:in `each'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/railties-6.1.4.1/lib/rails/initializable.rb:50:in `tsort_each_child'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/railties-6.1.4.1/lib/rails/initializable.rb:60:in `run_initializers'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/railties-6.1.4.1/lib/rails/application.rb:391:in `initialize!'
  STD: /tmp/d20220116-64334-1fi5jlq/config/environment.rb:16:in `<top (required)>'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `block in require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in `load_dependency'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `require'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/railties-6.1.4.1/lib/rails/application.rb:367:in `require_environment!'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/railties-6.1.4.1/lib/rails/application.rb:533:in `block in run_tasks_blocks'
  STD: /usr/local/rvm/gems/ruby-2.7.5/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
  STD: /usr/local/rvm/gems/ruby-2.7.5/bin/ruby_executable_hooks:22:in `eval'
  STD: /usr/local/rvm/gems/ruby-2.7.5/bin/ruby_executable_hooks:22:in `<main>'
  STD: Tasks: TOP => redmine:plugins:migrate => environment
  STD: (See full trace by running task with --trace)
4

2 回答 2

0

Easy Redmine 版本11plus.3.2将包含 vpim gem 的分支。-> 下周发布

于 2022-01-25T15:33:14.153 回答
0

我有同样的错误。就我而言,我使用的是包中包含的 Docker 映像,错误是 EasyProject 没有冻结基础映像的版本。

正如Holger在评论中提到的,问题是 Ruby 2.7.5 不支持 vpim 和 ruby​​-msg。如果您更改为 2.7.4,它将起作用。

在 Docker 版本中,将基础镜像更改为 ruby​​:2.7.4-slim-buster 就足够了。

顺便说一句......我认为冻结库和图像版本应该是一个好习惯......

于 2022-02-03T16:12:44.697 回答