質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
CentOS

CentOSは、主にRed Hat Enterprise Linux(RHEL)をベースにした、フリーのソフトウェアオペレーティングシステムです。

Ruby on Rails 5

Ruby on Rails 5は、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

PostgreSQL

PostgreSQLはオープンソースのオブジェクトリレーショナルデータベース管理システムです。 Oracle Databaseで使われるPL/SQLを参考に実装されたビルトイン言語で、Windows、 Mac、Linux、UNIX、MSなどいくつものプラットフォームに対応しています。

Redmine

Redmineは、プロジェクトのタスク管理、進捗管理、情報共有が可能な、 オープンソースプロジェクト管理ソフトウェアです。

Q&A

2回答

1258閲覧

CentOS7.3にRedmine(4.2.9)がインストールできません。

yamada-f

総合スコア0

CentOS

CentOSは、主にRed Hat Enterprise Linux(RHEL)をベースにした、フリーのソフトウェアオペレーティングシステムです。

Ruby on Rails 5

Ruby on Rails 5は、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

PostgreSQL

PostgreSQLはオープンソースのオブジェクトリレーショナルデータベース管理システムです。 Oracle Databaseで使われるPL/SQLを参考に実装されたビルトイン言語で、Windows、 Mac、Linux、UNIX、MSなどいくつものプラットフォームに対応しています。

Redmine

Redmineは、プロジェクトのタスク管理、進捗管理、情報共有が可能な、 オープンソースプロジェクト管理ソフトウェアです。

0グッド

0クリップ

投稿2023/03/28 08:19

CentOS7.3にRedmine(4.2.9)環境を構築しようとしています。

以下のサイトを参考にしながら、作業を進めております。

Redmine 3.4をCentOS 7.3にインストールする手順 - Redmine.JP Blog https://blog.redmine.jp/articles/3_4/install/centos/

既に以下のアプリケーションはインストールしました。
・bundler 1.12.0
・Ruby 2.4.1-p111
・PostgreSQL

「設定ファイル config/configuration.yml の作成」まで終わりましたので、
"bundle install --without development test --path vendor/bundlen" のコマンドを実行したところ、
以下の通りエラーとなりました。何が原因でしょうか?

↓↓↓↓↓実行結果↓↓↓↓↓

[root@localhost redmine-4.2.9]# bundle install --without development test --path vendor/bundle
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.
Please configure your config/database.yml first
Fetching gem metadata from https://rubygems.org/
Fetching version metadata from https://rubygems.org/
Fetching dependency metadata from https://rubygems.org/
Resolving dependencies.....
Installing rake 13.0.6
Installing concurrent-ruby 1.2.2
Installing minitest 5.18.0

Gem::InstallError: minitest requires Ruby version < 4.0, >= 2.6.
Installing thread_safe 0.3.6
Installing builder 3.2.4
Installing erubi 1.12.0
Installing mini_portile2 2.4.0
Installing crass 1.0.6
Installing rack 2.2.6.4
Installing nio4r 2.5.8 with native extensions
Installing websocket-extensions 0.1.5
Installing mini_mime 1.0.3
Installing method_source 1.0.0
Installing thor 1.2.1
Installing arel 9.0.0
Installing marcel 1.0.2
Installing public_suffix 5.0.1

Gem::InstallError: public_suffix requires Ruby version >= 2.6.
Using bundler 1.12.0
Installing chunky_png 1.4.0
Installing csv 3.1.5
Installing htmlentities 4.3.4
Installing mini_magick 4.11.0
Installing net-ldap 0.17.1
Installing psych 3.3.4 with native extensions
Installing ruby-openid 2.9.2
Installing rbpdf-font 1.19.1
Installing redcarpet 3.5.1 with native extensions
Installing rotp 6.2.2 Installing rouge 3.26.1
Installing rqrcode_core 1.2.0
Installing rubyzip 2.3.2 Installing i18n 1.8.11
An error occurred while installing minitest (5.18.0), and Bundler cannot continue.
Make sure that gem install minitest -v '5.18.0' succeeds before bundling.

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答2

0

AbeTakashi さんのご指摘のほか、
Don't run Bundler as root. Bundler can ask for sudo if it is needed,
とありますね。
rootでの実行ではだめなようです。

投稿2023/03/28 09:12

winterboum

総合スコア23347

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

yamada-f

2023/03/28 09:33

ありがとうございます。 権限関係のエラーは解消しました。 ---------- [user@localhost .bundle]$ bundle install --without development test --path vendor/bundle Please configure your config/database.yml first Fetching gem metadata from https://rubygems.org/ Fetching version metadata from https://rubygems.org/ Fetching dependency metadata from https://rubygems.org/ Resolving dependencies...... Using rake 13.0.6 Using concurrent-ruby 1.2.2 Installing minitest 5.18.0 Gem::FilePermissionError: You don't have write permissions for the /var/lib/redmine-4.2.9/vendor/bundle/ruby/2.4.0 directory. Using thread_safe 0.3.6 Using builder 3.2.4 Using erubi 1.12.0 Using mini_portile2 2.4.0 Using crass 1.0.6 Using rack 2.2.6.4 Using nio4r 2.5.8 Using websocket-extensions 0.1.5 Using mini_mime 1.0.3 Using method_source 1.0.0 Using thor 1.2.1 Using arel 9.0.0 Using marcel 1.0.2 Installing public_suffix 5.0.1 Using bundler 1.12.0 Using chunky_png 1.4.0 Using csv 3.1.5 Using htmlentities 4.3.4 Using mini_magick 4.11.0 Using net-ldap 0.17.1 Using psych 3.3.4 Using ruby-openid 2.9.2 Using rbpdf-font 1.19.1 Using redcarpet 3.5.1 Using rotp 6.2.2 Using rouge 3.26.1 Using rqrcode_core 1.2.0 Using rubyzip 2.3.2 Using i18n 1.8.11 An error occurred while installing minitest (5.18.0), and Bundler cannot continue. Make sure that `gem install minitest -v '5.18.0'` succeeds before bundling.
guest

0

メッセージにGem::InstallError: minitest requires Ruby version < 4.0, >= 2.6. と書いてありますし、Ruby 2.4.1-p11じゃダメだと思います。

CentOS7.3ってかなり古いですし、今だと記事のようにはならないと思います。いったんCentOS7の最新までアップデートした後にできる限り新しいドキュメントを参考にするなどして対応された方がいいと思います。どうしてもCentOS7.3のままでやるのなら、少なくともRubyのバージョンはもう少し新しくしないとダメでしょう。ただ、これ以外にも色々とトラブルがありそうなので、やはりCentOS7を最新に上げてやるのが一番いいとは思います。

投稿2023/03/28 08:58

AbeTakashi

総合スコア4537

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

yamada-f

2023/03/28 09:37

以下の条件を満たした環境を構築したかったのですが、 当時は構築できたけれども現状は難しいということですね。 CentOS7.3 Redmine 4.2.9 Ruby .4.1-p111 Rails 5.2.8.1 PostgreSQL Rubyのバージョンを上げての対応となると、結果でエラーで表示されている通りバージョンは「2.6以上4.0未満」で良いのでしょうか?
AbeTakashi

2023/03/28 10:26

そうですね、まずはそれで一度試してみるしかないのではないでしょうか。依存関係はなかなかに複雑なので、ここが解決できたとしても、他で逆にダメになるなど発生するかもしれませんが。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問