Установка плагина Redhopper на Debian 10 + Bitnami Redmine

Added by Petr T 22 days ago

Попытка установить плагин Redhopper на Debian 10 + Bitnami Redmine (https://www.redmine.org/plugins/redhopper) заканчивается сообщением:

Could not find gem 'acts_as_list (~> 0.9.17)' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems.

Выполнение bundle install (как зашитого в сборку, так и системного) так:

  1. bundle install
    Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application
    for all non-root users on this machine.
    Fetching gem metadata from https://rubygems.org/.............
    Fetching gem metadata from https://rubygems.org/.
    Resolving dependencies...
    Using concurrent-ruby 1.1.5
    Using i18n 1.7.0
    Fetching minitest 5.13.0
    Installing minitest 5.13.0
    Using thread_safe 0.3.6
    Using tzinfo 1.2.5
    Using zeitwerk 2.2.1
    Using activesupport 6.0.1
    Using builder 3.2.3
    Using erubi 1.9.0
    Using mini_portile2 2.4.0
    Fetching nokogiri 1.10.5
    Installing nokogiri 1.10.5 with native extensions
    Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.5.0/gems/nokogiri-1.10.5/ext/nokogiri
    /usr/bin/ruby2.5 -r ./siteconf20191115-13011-14fx7s0.rb extconf.rb
    checking if the C compiler accepts ... * 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/bin/$(RUBY_BASE_NAME)2.5
--help
--clean
/usr/lib/ruby/2.5.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /usr/lib/ruby/2.5.0/mkmf.rb:574:in `block in try_compile'
from /usr/lib/ruby/2.5.0/mkmf.rb:521:in `with_werror'
from /usr/lib/ruby/2.5.0/mkmf.rb:574:in `try_compile'
from extconf.rb:138:in `nokogiri_try_compile'
from extconf.rb:162:in `block in add_cflags'
from /usr/lib/ruby/2.5.0/mkmf.rb:632:in `with_cflags'
from extconf.rb:161:in `add_cflags'
from extconf.rb:416:in `<main>'

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

/var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/nokogiri-1.10.5/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.5.0/gems/nokogiri-1.10.5 for inspection.
Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/nokogiri-1.10.5/gem_make.out

An error occurred while installing nokogiri (1.10.5), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.10.5' --source 'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
rails-controller-testing was resolved to 1.0.4, which depends on
actionpack was resolved to 6.0.1, which depends on
actionview was resolved to 6.0.1, which depends on
rails-dom-testing was resolved to 2.0.3, which depends on
nokogiri

Установка nokogiri из gem-файла так же не работает:

  1. gem install ~/nokogiri-1.10.4.gem
    Building native extensions. This could take a while...
    ERROR: Error installing /root/nokogiri-1.10.4.gem:
    ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.5.0/gems/nokogiri-1.10.4/ext/nokogiri
    /usr/bin/ruby2.5 -r ./siteconf20191115-13077-rtbjch.rb extconf.rb
    checking if the C compiler accepts ... * 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/bin/$(RUBY_BASE_NAME)2.5
--help
--clean
/usr/lib/ruby/2.5.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /usr/lib/ruby/2.5.0/mkmf.rb:574:in `block in try_compile'
from /usr/lib/ruby/2.5.0/mkmf.rb:521:in `with_werror'
from /usr/lib/ruby/2.5.0/mkmf.rb:574:in `try_compile'
from extconf.rb:138:in `nokogiri_try_compile'
from extconf.rb:162:in `block in add_cflags'
from /usr/lib/ruby/2.5.0/mkmf.rb:632:in `with_cflags'
from extconf.rb:161:in `add_cflags'
from extconf.rb:416:in `<main>'

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

/var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/nokogiri-1.10.4/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.5.0/gems/nokogiri-1.10.4 for inspection.
Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/nokogiri-1.10.4/gem_make.out

Всё сводится к «логу» по адресу «/var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/nokogiri-1.10.4/mkmf.log», который не блещет понятностью:

"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.5.0 -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/ruby2.5-TeLQY5/ruby2.5-2.5.5=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC conftest.c -L. -L/usr/lib/x86_64-linux-gnu -L. -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic -lruby-2.5 -lpthread -lgmp -ldl -lcrypt -lm -lc "
checked program was:
/* begin /
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return 0;
6: }
/
end */

Куда смотреть?