kontron / redmine_oauth

Redmine authentication through OAuth.
GNU General Public License v2.0
57 stars 27 forks source link

Issue installing Redmine 5.0 Docker #16

Closed Fasterwolf closed 1 year ago

Fasterwolf commented 1 year ago

When ever I go to install this it pulls fine until I run bundle install. At that point I get an error that it requires Date as a dependency. At a complete loss to get around this issue at this point.

picman commented 1 year ago

Provide an output from bundle install.

Fasterwolf commented 1 year ago

bundle install

Your Gemfile lists the gem puma (>= 0) more than once. You should probably keep only one of them. Remove any duplicate entries and specify the gem only once. While it's not a problem now, it could cause errors if you change the version of one of them later. Fetching gem metadata from https://rubygems.org/......... Resolving dependencies... Using rake 13.0.6 Using minitest 5.18.0 Using zeitwerk 2.6.8 Using builder 3.2.4 Using erubi 1.12.0 Using racc 1.6.2 Using crass 1.0.6 Using rack 2.2.7 Using nio4r 2.5.9 Using websocket-extensions 0.1.5 Using marcel 1.0.2 Using mini_mime 1.1.2 Using method_source 1.0.0 Using thor 1.2.1 Using public_suffix 5.0.1 Using ruby2_keywords 0.0.5 Using chunky_png 1.4.0 Fetching hashie 5.0.0 Using concurrent-ruby 1.2.2 Using csv 3.2.6 Fetching date 3.3.3 Fetching jwt 2.7.0 Fetching faraday-net_http 3.0.2 Using commonmarker 0.23.9 Using htmlentities 4.3.4 Using mini_magick 4.11.0 Fetching multi_xml 0.6.0 Using bundler 2.3.26 Using timeout 0.3.2 Using mysql2 0.5.5 Fetching version_gem 1.1.2 Using net-ldap 0.17.1 Using redcarpet 3.5.1 Using rbpdf-font 1.19.1 Using rexml 3.2.5 Using rotp 6.2.2 Using rouge 3.28.0 Using rqrcode_core 1.2.0 Using rubyzip 2.3.2 Using nokogiri 1.13.10 (x86_64-linux) Using rack-test 2.1.0 Using websocket-driver 0.7.5 Using mail 2.7.1 Using puma 6.2.2 Using request_store 1.5.1 Using addressable 2.8.4 Using i18n 1.10.0 Using tzinfo 2.0.6 Using sprockets 4.2.0 Using net-protocol 0.2.1 Using rbpdf 1.21.1 Using rqrcode 2.1.2 Using loofah 2.20.0 Using sanitize 6.0.1 Using css_parser 1.14.0 Using activesupport 6.1.7.2 Using net-pop 0.1.2 Using net-smtp 0.3.3 Using rails-html-sanitizer 1.5.0 Using roadie 5.1.0 Using rails-dom-testing 2.0.3 Using globalid 1.1.0 Using activemodel 6.1.7.2 Using html-pipeline 2.13.2 Using actionview 6.1.7.2 Using activejob 6.1.7.2 Using activerecord 6.1.7.2 Using deckar01-task_list 2.3.2 Using actionpack 6.1.7.2 Using actioncable 6.1.7.2 Using activestorage 6.1.7.2 Using actionmailer 6.1.7.2 Using railties 6.1.7.2 Using sprockets-rails 3.4.2 Using actionmailbox 6.1.7.2 Using actiontext 6.1.7.2 Using actionpack-xml_parser 2.0.1 Using roadie-rails 3.0.0 Using rails 6.1.7.2 Installing faraday-net_http 3.0.2 Installing multi_xml 0.6.0 Installing version_gem 1.1.2 Installing jwt 2.7.0 Installing hashie 5.0.0 Installing date 3.3.3 with native extensions Fetching faraday 2.7.4 Fetching snaky_hash 2.0.1 Installing faraday 2.7.4 Installing snaky_hash 2.0.1 Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /usr/local/bundle/gems/date-3.3.3/ext/date

/usr/local/bin/ruby -I /usr/local/lib/ruby/3.1.0 extconf.rb checking for rb_category_warn()... 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 --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/local/bin/$(RUBY_BASE_NAME) /usr/local/lib/ruby/3.1.0/mkmf.rb:490: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.1.0/mkmf.rb:583:intry_link0' from /usr/local/lib/ruby/3.1.0/mkmf.rb:601:in try_link' from /usr/local/lib/ruby/3.1.0/mkmf.rb:812:intry_func' from /usr/local/lib/ruby/3.1.0/mkmf.rb:1116:in block in have_func' from /usr/local/lib/ruby/3.1.0/mkmf.rb:989:inblock in checking_for' from /usr/local/lib/ruby/3.1.0/mkmf.rb:354:in block (2 levels) in postpone' from /usr/local/lib/ruby/3.1.0/mkmf.rb:324:inopen' from /usr/local/lib/ruby/3.1.0/mkmf.rb:354:in block in postpone' from /usr/local/lib/ruby/3.1.0/mkmf.rb:324:inopen' from /usr/local/lib/ruby/3.1.0/mkmf.rb:350:in postpone' from /usr/local/lib/ruby/3.1.0/mkmf.rb:988:inchecking_for' from /usr/local/lib/ruby/3.1.0/mkmf.rb:1115:in have_func' from extconf.rb:6:in

'

To see why this extension failed to compile, please check the mkmf.log which can be found here:

/usr/local/bundle/extensions/x86_64-linux/3.1.0/date-3.3.3/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /usr/local/bundle/gems/date-3.3.3 for inspection. Results logged to /usr/local/bundle/extensions/x86_64-linux/3.1.0/date-3.3.3/gem_make.out

/usr/local/lib/ruby/3.1.0/rubygems/ext/builder.rb:102:in run' /usr/local/lib/ruby/3.1.0/rubygems/ext/ext_conf_builder.rb:28:inbuild' /usr/local/lib/ruby/3.1.0/rubygems/ext/builder.rb:171:in build_extension' /usr/local/lib/ruby/3.1.0/rubygems/ext/builder.rb:205:inblock in build_extensions' /usr/local/lib/ruby/3.1.0/rubygems/ext/builder.rb:202:in each' /usr/local/lib/ruby/3.1.0/rubygems/ext/builder.rb:202:inbuild_extensions' /usr/local/lib/ruby/3.1.0/rubygems/installer.rb:843:in build_extensions' /usr/local/lib/ruby/3.1.0/bundler/rubygems_gem_installer.rb:72:inbuild_extensions' /usr/local/lib/ruby/3.1.0/bundler/rubygems_gem_installer.rb:28:in install' /usr/local/lib/ruby/3.1.0/bundler/source/rubygems.rb:207:ininstall' /usr/local/lib/ruby/3.1.0/bundler/installer/gem_installer.rb:54:in install' /usr/local/lib/ruby/3.1.0/bundler/installer/gem_installer.rb:16:ininstall_from_spec' /usr/local/lib/ruby/3.1.0/bundler/installer/parallel_installer.rb:186:in do_install' /usr/local/lib/ruby/3.1.0/bundler/installer/parallel_installer.rb:177:inblock in worker_pool' /usr/local/lib/ruby/3.1.0/bundler/worker.rb:62:in apply_func' /usr/local/lib/ruby/3.1.0/bundler/worker.rb:57:inblock in process_queue' /usr/local/lib/ruby/3.1.0/bundler/worker.rb:54:in loop' /usr/local/lib/ruby/3.1.0/bundler/worker.rb:54:inprocess_queue' /usr/local/lib/ruby/3.1.0/bundler/worker.rb:91:in `block (2 levels) in create_threads'

An error occurred while installing date (3.3.3), and Bundler cannot continue.

In Gemfile: net-imap was resolved to 0.3.4, which depends on date

picman commented 1 year ago

The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first.

On Debian based systems you can fix that by installing apt-get install build-essential Then re-run bundle install. In case of further errors use the Internet to solve them.

Fasterwolf commented 1 year ago

Worked perfectly thank you for the help.