Describe the bug
when executing the command bundle install --without development test the following error is generated: Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
To Reproduce
Steps to reproduce the behavior:
- copy and extract dashboard-plugin into
/usr/src/redmine/plugins/redmine_dashboard
- cd
/usr/src/redmine/plugins/redmine_dashboard
- run
bundle install --without development test
Expected behavior
successful installation of dependencies bundle install --without development test
Screenshots
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /usr/src/redmine/plugins/redmine_dashboard/vendor/bundle/ruby/3.3.0/gems/bigdecimal-3.1.9/ext/bigdecimal
/usr/local/bin/ruby extconf.rb
checking for __builtin_clz()... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include=${opt-dir}/include
--without-opt-include
--with-opt-lib=${opt-dir}/lib
--without-opt-lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/bin/$(RUBY_BASE_NAME)
/usr/local/lib/ruby/3.3.0/mkmf.rb:480:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /usr/local/lib/ruby/3.3.0/mkmf.rb:606:in `block in try_compile'
from /usr/local/lib/ruby/3.3.0/mkmf.rb:555:in `with_werror'
from /usr/local/lib/ruby/3.3.0/mkmf.rb:606:in `try_compile'
from extconf.rb:6:in `block in have_builtin_func'
from /usr/local/lib/ruby/3.3.0/mkmf.rb:983:in `block in checking_for'
from /usr/local/lib/ruby/3.3.0/mkmf.rb:344:in `block (2 levels) in postpone'
from /usr/local/lib/ruby/3.3.0/mkmf.rb:314:in `open'
from /usr/local/lib/ruby/3.3.0/mkmf.rb:344:in `block in postpone'
from /usr/local/lib/ruby/3.3.0/mkmf.rb:314:in `open'
from /usr/local/lib/ruby/3.3.0/mkmf.rb:340:in `postpone'
from /usr/local/lib/ruby/3.3.0/mkmf.rb:982:in `checking_for'
from extconf.rb:5:in `have_builtin_func'
from extconf.rb:18:in `<main>'
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/usr/src/redmine/plugins/redmine_dashboard/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/bigdecimal-3.1.9/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /usr/src/redmine/plugins/redmine_dashboard/vendor/bundle/ruby/3.3.0/gems/bigdecimal-3.1.9 for inspection.
Results logged to /usr/src/redmine/plugins/redmine_dashboard/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/bigdecimal-3.1.9/gem_make.out
/usr/local/lib/ruby/3.3.0/rubygems/ext/builder.rb:125:in `run'
/usr/local/lib/ruby/3.3.0/rubygems/ext/ext_conf_builder.rb:28:in `build'
/usr/local/lib/ruby/3.3.0/rubygems/ext/builder.rb:193:in `build_extension'
/usr/local/lib/ruby/3.3.0/rubygems/ext/builder.rb:227:in `block in build_extensions'
/usr/local/lib/ruby/3.3.0/rubygems/ext/builder.rb:224:in `each'
/usr/local/lib/ruby/3.3.0/rubygems/ext/builder.rb:224:in `build_extensions'
/usr/local/lib/ruby/3.3.0/rubygems/installer.rb:844:in `build_extensions'
/usr/local/lib/ruby/3.3.0/bundler/rubygems_gem_installer.rb:109:in `build_extensions'
/usr/local/lib/ruby/3.3.0/bundler/rubygems_gem_installer.rb:28:in `install'
/usr/local/lib/ruby/3.3.0/bundler/source/rubygems.rb:205:in `install'
/usr/local/lib/ruby/3.3.0/bundler/installer/gem_installer.rb:55:in `install'
/usr/local/lib/ruby/3.3.0/bundler/installer/gem_installer.rb:17:in `install_from_spec'
/usr/local/lib/ruby/3.3.0/bundler/installer/parallel_installer.rb:133:in `do_install'
/usr/local/lib/ruby/3.3.0/bundler/installer/parallel_installer.rb:124:in `block in worker_pool'
/usr/local/lib/ruby/3.3.0/bundler/worker.rb:62:in `apply_func'
/usr/local/lib/ruby/3.3.0/bundler/worker.rb:57:in `block in process_queue'
<internal:kernel>:187:in `loop'
/usr/local/lib/ruby/3.3.0/bundler/worker.rb:54:in `process_queue'
/usr/local/lib/ruby/3.3.0/bundler/worker.rb:90:in `block (2 levels) in create_threads'
An error occurred while installing bigdecimal (3.1.9), and Bundler cannot continue.
In Gemfile:
slim-rails was resolved to 3.7.0, which depends on
railties was resolved to 8.0.2, which depends on
actionpack was resolved to 8.0.2, which depends on
actionview was resolved to 8.0.2, which depends on
rails-dom-testing was resolved to 2.2.0, which depends on
activesupport was resolved to 8.0.2, which depends on
bigdecimal
Redmine
Administrator-Passwort geändert [ok]
Verzeichnis für Dateien beschreibbar [ok]
Alle Datenbank-Migrationen wurden ausgeführt [ok]
MiniMagick verfügbar (optional) [ok]
ImageMagick-Konvertierung verfügbar (optional) [ok]
ImageMagick PDF-Unterstützung verfügbar (optional) [ok]
Default queue adapter which is well suited only for dev/test changed [warning]
Environment:
Redmine version 6.0.5.stable
Ruby version 3.3.8-p144 (2025-04-09) [x86_64-linux]
Rails version 7.2.2.1
Environment production
Database adapter PostgreSQL
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp
Redmine settings:
Redmine theme Default
SCM:
Subversion 1.14.2
Mercurial 6.3.2
Bazaar 3.3.2
Git 2.39.5
Filesystem
Redmine plugins:
no plugin installed
Add details about your server:
- Appliance: redmine-docker:6.0.5
Describe the bug
when executing the command
bundle install --without development testthe following error is generated:Gem::Ext::BuildError: ERROR: Failed to build gem native extension.To Reproduce
Steps to reproduce the behavior:
/usr/src/redmine/plugins/redmine_dashboard/usr/src/redmine/plugins/redmine_dashboardbundle install --without development testExpected behavior
successful installation of dependencies
bundle install --without development testScreenshots
Redmine
Add details about your server: