Linux debian 11(bullseye)에 apt를 사용하여 redmine 4.0.7-1 설치

Linux debian 11(bullseye)에 apt를 사용하여 redmine 4.0.7-1 설치

Redmine은 일반적으로 설치/업그레이드할 때 gem/gemfiles 작업이 필요하기 때문에 어려움을 겪어왔습니다. 이는 제가 잘 알지 못하는 부분입니다.

나는 Debian LAMP 서버에서 원활하게 작동하는 이전 버전의 Redmine을 가지고 있었지만 최근 Debian 11(Bullseye) 릴리스에서 마침내 Debian 버전을 업그레이드하기로 결정했습니다. 그러나 Bundler가 레일을 찾을 수 없는 아래 오류가 발생합니다(~> 5.2.2). 그러나 모든 gem을 업데이트했으며 번들러 버전은 Rails(6.1.4.1, 6.0.3.7)입니다.

인터넷에 보고된 일부 발행물을 살펴보면 다음 버그 보고서와 같이 유사한(동일한?) 문제를 언급하는 몇 가지 사항만 발견했습니다.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=969206

그러나 이 문제를 어떻게 해결할 수 있는지에 대한 정보는 없습니다.

따라서 어떤 도움이라도 대단히 감사하겠습니다. 미리 감사드립니다.

아래에는 적절한 설치 로그의 출력물과 설치된 모든 gem 목록이 추가되어 있습니다.

501.0 # apt install redmine
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
redmine is already the newest version (4.0.7-1).
0 upgraded, 0 newly installed, 0 to remove and 901 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
Setting up redmine (4.0.7-1) ...
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.
Could not find gem 'rails (~> 5.2.2)' in cached gems from rubygems repository https://rubygems.org/ or installed locally.
The source contains the following versions of 'rails': 6.0.3.7, 6.1.4.1
dpkg: error processing package redmine (--configure):
 installed redmine package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 redmine
E: Sub-process /usr/bin/dpkg returned an error code (1)
설치된 보석

504.0 # gem list --local

*** LOCAL GEMS ***

actioncable (6.1.4.1, 6.0.3.7)
actionmailbox (6.1.4.1, 6.0.3.7)
actionmailer (6.1.4.1, 6.0.3.7)
actionpack (6.1.4.1, 6.0.3.7)
actionpack-action_caching (1.2.2, 1.2.1)
actionpack-xml_parser (2.0.1)
actiontext (6.1.4.1, 6.0.3.7)
actionview (6.1.4.1, 6.0.3.7)
activejob (6.1.4.1, 6.0.3.7)
activemodel (6.1.4.1, 6.0.3.7)
activerecord (6.1.4.1, 6.0.3.7)
activestorage (6.1.4.1, 6.0.3.7)
activesupport (6.1.4.1, 6.0.3.7)
addressable (2.8.0, 2.7.0)
arel (9.0.0)
atomic (1.1.101, 1.1.16)
awesome_nested_set (3.4.0, 3.0.0)
benchmark (0.1.1, default: 0.1.0)
bigdecimal (3.0.2, default: 2.0.0)
blankslate (3.1.3)
builder (3.2.4)
bundler (2.2.29, 2.2.5, default: 2.1.4)
cgi (0.2.0, default: 0.1.0)
coderay (1.1.3)
coffee-script (2.4.1)
coffee-script-source (1.12.2)
columnize (0.9.0)
concurrent-ruby (1.1.9, 1.1.6)
concurrent-ruby-edge (0.6.0)
connection_pool (2.2.5, 2.2.2)
crass (1.0.6, 1.0.2)
css_parser (1.10.0, 1.6.0)
csv (3.2.0, default: 3.1.2)
date (3.1.1, default: 3.0.0)
dbm (default: 1.1.0)
delegate (0.2.0, default: 0.1.0)
did_you_mean (1.5.0, default: 1.4.0, 1.2.1)
digest (3.0.0)
erubi (1.10.0, 1.9.0)
erubis (2.7.0)
etc (1.2.0, default: 1.1.0)
execjs (2.8.1, 2.7.0)
fcntl (default: 1.0.0)
fiddle (1.0.9, default: 1.0.0)
fileutils (1.5.0, default: 1.4.1)
forwardable (1.3.2, default: 1.3.1)
gdbm (default: 2.1.0)
getoptlong (0.1.1, default: 0.1.0)
globalid (0.5.2, 0.3.6)
hike (2.1.3, 1.2.1)
i18n (1.8.10, 1.8.8)
io-console (0.5.9, default: 0.5.6)
io-wait (0.1.0)
ipaddr (default: 1.2.2)
irb (1.3.7, default: 1.2.6)
jquery-rails (4.4.0, 4.3.5)
json (2.5.1, default: 2.3.0)
logger (1.4.3, default: 1.4.2)
loofah (2.12.0)
mail (2.7.1)
marcel (1.0.2, 1.0.1)
matrix (0.4.2, default: 0.2.0)
method_source (1.0.0)
mime-types (3.3.1)
mime-types-data (3.2021.0901, 3.2015.1120)
mimemagic (0.4.3, 0.3.5)
mini_mime (1.1.2, 1.0.2)
minitest (5.14.4, 5.13.0)
molinillo (0.8.0, 0.6.4)
multi_json (1.15.0, 1.14.1)
mutex_m (0.1.1, default: 0.1.0)
net-http-persistent (4.0.1, 3.1.0)
net-ldap (0.17.0, 0.16.1)
net-pop (0.1.1, default: 0.1.0)
net-protocol (0.1.1)
net-smtp (0.2.2, default: 0.1.0)
nio4r (2.5.8)
nokogiri (1.12.5 x86_64-linux, 1.11.7)
observer (0.1.1, default: 0.1.0)
open3 (0.1.1, default: 0.1.0)
openssl (2.2.0, default: 2.1.2)
ostruct (0.4.0, default: 0.2.0)
pkg-config (1.4.6, 1.4.4)
polyglot (0.3.5, 0.3.4)
power_assert (2.0.1, 1.1.7)
prime (0.1.2, default: 0.1.1)
pstore (0.1.1, default: 0.1.0)
psych (4.0.1, default: 3.1.0)
public_suffix (4.0.6, 3.0.3)
racc (1.5.2, default: 1.4.16)
rack (2.2.3, 2.1.4)
rack-openid (1.4.2)
rack-test (1.1.0, 0.7.0)
rails (6.1.4.1, 6.0.3.7)
rails-deprecated_sanitizer (1.0.4, 1.0.3)
rails-dom-testing (2.0.3)
rails-html-sanitizer (1.4.2)
rails-observers (0.1.5)
railties (6.1.4.1, 6.0.3.7)
rake (13.0.6, 13.0.3)
rbpdf (1.20.1)
rbpdf-font (1.19.1)
rdoc (6.3.2, default: 6.2.1.1)
readline (default: 0.0.2)
readline-ext (0.1.2, default: 0.1.0)
redcarpet (3.5.1)
reline (0.2.7, default: 0.1.5)
request_store (1.5.0)
rexml (3.2.5, default: 3.2.3.1)
rmagick (4.2.3)
roadie (4.0.0)
roadie-rails (2.2.0, 2.1.1)
rouge (3.26.1)
rss (0.2.9, default: 0.2.8)
ruby-i18n-months (1.0.0)
ruby-openid (2.9.2)
rubygems-update (3.2.29, 3.2.5)
sass (3.7.4)
sdbm (default: 1.0.0)
sdoc (2.2.0, 1.1.0)
singleton (0.1.1, default: 0.1.0)
sprockets (4.0.2, 3.7.2)
sprockets-rails (3.2.2, 3.2.1)
sqlite3 (1.4.2)
stringio (3.0.0, default: 0.1.0)
strscan (3.0.0, default: 1.0.3)
test-unit (3.4.8, 3.3.9)
thor (1.1.0, 1.0.1)
thread_safe (0.3.6)
tilt (2.0.10)
timeout (0.1.1, default: 0.1.0)
tracer (0.1.1, default: 0.1.0)
tzinfo (2.0.4, 1.2.6)
uri (0.10.1, default: 0.10.0)
webrick (1.7.0, default: 1.6.1)
websocket-driver (0.7.5, 0.6.3)
websocket-extensions (0.1.5)
xmlrpc (0.3.2, 0.3.0)
yaml (0.1.1, default: 0.1.0)
zeitwerk (2.4.2)
zlib (default: 1.1.0)

답변1

Redmine 4.x에는 Rails 5.2 분기만 필요합니다. 공식 Redmine 요구 사항을 찾을 수 있습니다여기.

따라서 필요한 Rails 버전을 설치하거나 Redmine도 업그레이드해야 합니다.

관련 정보