Problem Installing Redmine 5.1.2
Added by Matt Savin 7 months ago
Hello,
I've been running Redmine 5.0.3 on Fedora 36 for the past two years. Recently, I upgraded to Fedora 39 and now I'm looking to move to version 5.1.2. However, I encountered an error when running "bundle exec rake generate_secret_token".
Any advice on resolving this issue would be greatly appreciated!
Thanks,
Matt
- ruby -v
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux]
- bundle exec rake generate_secret_token
rake aborted!
LoadError: cannot load such file -- ox/ox (LoadError)
<internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:37:in `require'
/usr/share/gems/gems/zeitwerk-2.6.13/lib/zeitwerk/kernel.rb:34:in `require'
/usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/dependencies.rb:332:in `block in require'
/usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/dependencies.rb:299:in `load_dependency'
/usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/dependencies.rb:332:in `require'
/usr/share/gems/gems/ox-2.14.18/lib/ox.rb:82:in `rescue in <top (required)>'
/usr/share/gems/gems/ox-2.14.18/lib/ox.rb:79:in `<top (required)>'
/usr/share/gems/gems/zeitwerk-2.6.13/lib/zeitwerk/kernel.rb:34:in `require'
/usr/share/gems/gems/zeitwerk-2.6.13/lib/zeitwerk/kernel.rb:34:in `require'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler/runtime.rb:60:in `block (2 levels) in require'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler/runtime.rb:55:in `each'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler/runtime.rb:55:in `block in require'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler/runtime.rb:44:in `each'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler/runtime.rb:44:in `require'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler.rb:196:in `require'
/var/www/redmine/config/application.rb:18:in `<top (required)>'
<internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:37:in `require'
/var/www/redmine/Rakefile:5:in `<top (required)>'
/usr/share/gems/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler/cli/exec.rb:58:in `load'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler/cli/exec.rb:58:in `kernel_load'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler/cli/exec.rb:23:in `run'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler/cli.rb:492:in `exec'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler/cli.rb:34:in `dispatch'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler/cli.rb:28:in `start'
/usr/share/gems/gems/bundler-2.4.10/libexec/bundle:45:in `block in <top (required)>'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
/usr/share/gems/gems/bundler-2.4.10/libexec/bundle:33:in `<top (required)>'
/usr/bin/bundle:25:in `load'
/usr/bin/bundle:25:in `<main>'
Caused by:
LoadError: cannot load such file -- /usr/share/gems/gems/ox-2.14.18/lib/ox.so (LoadError)
/usr/share/gems/gems/ox-2.14.18/lib/ox.rb:80:in `require_relative'
/usr/share/gems/gems/ox-2.14.18/lib/ox.rb:80:in `<top (required)>'
/usr/share/gems/gems/zeitwerk-2.6.13/lib/zeitwerk/kernel.rb:34:in `require'
/usr/share/gems/gems/zeitwerk-2.6.13/lib/zeitwerk/kernel.rb:34:in `require'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler/runtime.rb:60:in `block (2 levels) in require'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler/runtime.rb:55:in `each'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler/runtime.rb:55:in `block in require'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler/runtime.rb:44:in `each'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler/runtime.rb:44:in `require'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler.rb:196:in `require'
/var/www/redmine/config/application.rb:18:in `<top (required)>'
<internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:37:in `require'
/var/www/redmine/Rakefile:5:in `<top (required)>'
/usr/share/gems/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler/cli/exec.rb:58:in `load'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler/cli/exec.rb:58:in `kernel_load'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler/cli/exec.rb:23:in `run'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler/cli.rb:492:in `exec'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler/cli.rb:34:in `dispatch'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler/cli.rb:28:in `start'
/usr/share/gems/gems/bundler-2.4.10/libexec/bundle:45:in `block in <top (required)>'
/usr/share/gems/gems/bundler-2.4.10/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
/usr/share/gems/gems/bundler-2.4.10/libexec/bundle:33:in `<top (required)>'
/usr/bin/bundle:25:in `load'
/usr/bin/bundle:25:in `<main>'
(See full trace by running task with --trace)
Replies (1)
RE: Problem Installing Redmine 5.1.2 - Added by Matt Savin 7 months ago
To fix the issue:
cd /usr/share/gems/gems/ox-2.14.18/ext/ox && make && cp -a ox.so ../../lib/