Can't install on Debian 10

Added by Andre Bachtold 7 months ago

I'm trying to follow the procedures on https://www.atlantic.net/dedicated-server-hosting/how-to-install-redmine-4-2-on-debian-10/

And when I do the
bundle install --without development test --path vendor/bundle

[DEPRECATED] The `--path` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local path 'vendor/bundle'`, and stop using this flag
[DEPRECATED] The `--without` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local without 'development test'`, and stop using this flag
Fetching gem metadata from https://rubygems.org/..........
Resolving dependencies........
Using rake 13.0.6
Using concurrent-ruby 1.1.9
Using minitest 5.14.4
Using thread_safe 0.3.6
Using builder 3.2.4
Using erubi 1.10.0
Using crass 1.0.6
Using websocket-extensions 0.1.5
Using mini_mime 1.0.3
Fetching nio4r 2.5.8
Using rack 2.2.3
Fetching racc 1.6.0
Using thor 1.1.0
Using arel 9.0.0
Using marcel 1.0.2
Using method_source 1.0.0
Using bundler 2.2.30
Using public_suffix 4.0.6
Using chunky_png 1.4.0
Using htmlentities 4.3.4
Using mini_magick 4.11.0
Fetching mysql2 0.5.3
Using csv 3.1.9
Using net-ldap 0.17.0
Using ruby-openid 2.9.2
Using rbpdf-font 1.19.1
Fetching redcarpet 3.5.1
Installing mysql2 0.5.3 with native extensions
Installing racc 1.6.0 with native extensions
Installing redcarpet 3.5.1 with native extensions
Installing nio4r 2.5.8 with native extensions
Using rotp 6.2.0
Using rouge 3.26.1
Using rqrcode_core 1.2.0
Using rubyzip 2.3.2
Using i18n 1.8.11
Using tzinfo 1.2.9
Fetching websocket-driver 0.7.5
Installing websocket-driver 0.7.5 with native extensions
Using mail 2.7.1
Using rack-test 1.1.0
Using sprockets 4.0.2
Using request_store 1.5.0
Using addressable 2.8.0
Using rack-openid 1.4.2
Using rbpdf 1.20.1
Using rqrcode 2.1.0
Using activesupport 5.2.5
Using css_parser 1.10.0
Using globalid 0.5.2
Using activemodel 5.2.5
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /opt/redmine/vendor/bundle/ruby/2.5.0/gems/racc-1.6.0/ext/racc/cparse
/usr/bin/ruby2.5 -r ./siteconf20211105-23209-1ryka5n.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in /opt/redmine/vendor/bundle/ruby/2.5.0/gems/racc-1.6.0 for inspection.
Results logged to /opt/redmine/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/racc-1.6.0/gem_make.out

/usr/lib/ruby/2.5.0/rubygems/ext/builder.rb:92:in `run'
/usr/lib/ruby/2.5.0/rubygems/ext/ext_conf_builder.rb:46:in `block in build'
/usr/lib/ruby/2.5.0/tempfile.rb:295:in `open'
/usr/lib/ruby/2.5.0/rubygems/ext/ext_conf_builder.rb:30:in `build'
/usr/lib/ruby/2.5.0/rubygems/ext/builder.rb:164:in `block (2 levels) in build_extension'
/usr/lib/ruby/2.5.0/rubygems/ext/builder.rb:163:in `chdir'
/usr/lib/ruby/2.5.0/rubygems/ext/builder.rb:163:in `block in build_extension'
/usr/lib/ruby/2.5.0/monitor.rb:226:in `mon_synchronize'
/usr/lib/ruby/2.5.0/rubygems/ext/builder.rb:162:in `build_extension'
/usr/lib/ruby/2.5.0/rubygems/ext/builder.rb:201:in `block in build_extensions'
/usr/lib/ruby/2.5.0/rubygems/ext/builder.rb:198:in `each'
/usr/lib/ruby/2.5.0/rubygems/ext/builder.rb:198:in `build_extensions'
/usr/lib/ruby/2.5.0/rubygems/installer.rb:791:in `build_extensions'
/var/lib/gems/2.5.0/gems/bundler-2.2.30/lib/bundler/rubygems_gem_installer.rb:71:in `build_extensions'
/var/lib/gems/2.5.0/gems/bundler-2.2.30/lib/bundler/rubygems_gem_installer.rb:28:in `install'
/var/lib/gems/2.5.0/gems/bundler-2.2.30/lib/bundler/source/rubygems.rb:200:in `install'
/var/lib/gems/2.5.0/gems/bundler-2.2.30/lib/bundler/installer/gem_installer.rb:54:in `install'
/var/lib/gems/2.5.0/gems/bundler-2.2.30/lib/bundler/installer/gem_installer.rb:16:in `install_from_spec'
/var/lib/gems/2.5.0/gems/bundler-2.2.30/lib/bundler/installer/parallel_installer.rb:186:in `do_install'
/var/lib/gems/2.5.0/gems/bundler-2.2.30/lib/bundler/installer/parallel_installer.rb:177:in `block in worker_pool'
/var/lib/gems/2.5.0/gems/bundler-2.2.30/lib/bundler/worker.rb:62:in `apply_func'
/var/lib/gems/2.5.0/gems/bundler-2.2.30/lib/bundler/worker.rb:57:in `block in process_queue'
/var/lib/gems/2.5.0/gems/bundler-2.2.30/lib/bundler/worker.rb:54:in `loop'
/var/lib/gems/2.5.0/gems/bundler-2.2.30/lib/bundler/worker.rb:54:in `process_queue'
/var/lib/gems/2.5.0/gems/bundler-2.2.30/lib/bundler/worker.rb:91:in `block (2 levels) in create_threads'

An error occurred while installing racc (1.6.0), and Bundler cannot continue.

In Gemfile:
rails was resolved to 5.2.5, which depends on
actioncable was resolved to 5.2.5, which depends on
actionpack was resolved to 5.2.5, which depends on
actionview was resolved to 5.2.5, which depends on
rails-dom-testing was resolved to 2.0.3, which depends on
nokogiri was resolved to 1.11.7, which depends on
racc

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /opt/redmine/vendor/bundle/ruby/2.5.0/gems/mysql2-0.5.3/ext/mysql2
/usr/bin/ruby2.5 -r ./siteconf20211105-23209-19hcsiw.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in /opt/redmine/vendor/bundle/ruby/2.5.0/gems/mysql2-0.5.3 for inspection.
Results logged to /opt/redmine/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/mysql2-0.5.3/gem_make.out

/usr/lib/ruby/2.5.0/rubygems/ext/builder.rb:92:in `run'
/usr/lib/ruby/2.5.0/rubygems/ext/ext_conf_builder.rb:46:in `block in build'
/usr/lib/ruby/2.5.0/tempfile.rb:295:in `open'
/usr/lib/ruby/2.5.0/rubygems/ext/ext_conf_builder.rb:30:in `build'
/usr/lib/ruby/2.5.0/rubygems/ext/builder.rb:164:in `block (2 levels) in build_extension'
/usr/lib/ruby/2.5.0/rubygems/ext/builder.rb:163:in `chdir'
/usr/lib/ruby/2.5.0/rubygems/ext/builder.rb:163:in `block in build_extension'
/usr/lib/ruby/2.5.0/monitor.rb:226:in `mon_synchronize'
/usr/lib/ruby/2.5.0/rubygems/ext/builder.rb:162:in `build_extension'
/usr/lib/ruby/2.5.0/rubygems/ext/builder.rb:201:in `block in build_extensions'
/usr/lib/ruby/2.5.0/rubygems/ext/builder.rb:198:in `each'
/usr/lib/ruby/2.5.0/rubygems/ext/builder.rb:198:in `build_extensions'
/usr/lib/ruby/2.5.0/rubygems/installer.rb:791:in `build_extensions'
/var/lib/gems/2.5.0/gems/bundler-2.2.30/lib/bundler/rubygems_gem_installer.rb:71:in `build_extensions'
/var/lib/gems/2.5.0/gems/bundler-2.2.30/lib/bundler/rubygems_gem_installer.rb:28:in `install'
/var/lib/gems/2.5.0/gems/bundler-2.2.30/lib/bundler/source/rubygems.rb:200:in `install'
/var/lib/gems/2.5.0/gems/bundler-2.2.30/lib/bundler/installer/gem_installer.rb:54:in `install'
/var/lib/gems/2.5.0/gems/bundler-2.2.30/lib/bundler/installer/gem_installer.rb:16:in `install_from_spec'
/var/lib/gems/2.5.0/gems/bundler-2.2.30/lib/bundler/installer/parallel_installer.rb:186:in `do_install'
/var/lib/gems/2.5.0/gems/bundler-2.2.30/lib/bundler/installer/parallel_installer.rb:177:in `block in worker_pool'
/var/lib/gems/2.5.0/gems/bundler-2.2.30/lib/bundler/worker.rb:62:in `apply_func'
/var/lib/gems/2.5.0/gems/bundler-2.2.30/lib/bundler/worker.rb:57:in `block in process_queue'
/var/lib/gems/2.5.0/gems/bundler-2.2.30/lib/bundler/worker.rb:54:in `loop'
/var/lib/gems/2.5.0/gems/bundler-2.2.30/lib/bundler/worker.rb:54:in `process_queue'
/var/lib/gems/2.5.0/gems/bundler-2.2.30/lib/bundler/worker.rb:91:in `block (2 levels) in create_threads'

An error occurred while installing mysql2 (0.5.3), and Bundler cannot continue.

In Gemfile:
mysql2

And I can't progress with the installation. Can anyone help?

Replies (3)

RE: Can't install on Debian 10 - Added by Vadim Kalashnikov 6 months ago

It looks like you have not installed all required packages. Check ruby '-dev' packages.

RE: Can't install on Debian 10 - Added by Andre Bachtold 6 months ago

I'm sorry for the long wait in the response.
I couldn't for some reason post here on the week to answer that I could make the install, it was really dependencies that I did not installed.
But now I'm trying to configure Nginx to point to the site. But it always goes to 403.
And what I find is always people using apache. In this server I run others services and use nginx to manage all. Can anyone help me?

# Redirect HTTP -> HTTPS

server {

server_name redmine;

root /opt/redmine/public;

listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/redmine/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/redmine/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

}

server {
if ($host = redmine) {
return 301 https://$host$request_uri;
} # managed by Certbot

listen 80;

server_name redmine;
return 404; # managed by Certbot

}

This is my config for this site.

RE: Can't install on Debian 10 - Added by Andre Bachtold 5 months ago

After some time I discovered that the problem was Passenger installation. I can't install it on Debian 10
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
passenger : Depends: libcurl3 (>= 7.16.2) but it is not installable
Recommends: passenger-doc (= 1:6.0.12-1~stretch1) but it is not going to be installed
Recommends: passenger-dev (= 1:6.0.12-1~stretch1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I tried changing the repo for the passenger. But it always stops on that libcur13...
Can someone help me with that? It has a repo that don't use this dependency?
I can't format this server to put Debian 9

(1-3/3)