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

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

新規登録して質問してみよう
ただいま回答率
85.50%
Windows 10

Windows 10は、マイクロソフト社がリリースしたOSです。Modern UIを標準画面にした8.1から、10では再びデスクトップ主体に戻され、UIも変更されています。PCやスマホ、タブレットなど様々なデバイスに幅広く対応していることが特徴です。

Ruby

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

Ruby on Rails

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

Redmine

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

Q&A

解決済

2回答

4351閲覧

Redmineの構築時にbundle execが異常終了する

Pinsir

総合スコア1

Windows 10

Windows 10は、マイクロソフト社がリリースしたOSです。Modern UIを標準画面にした8.1から、10では再びデスクトップ主体に戻され、UIも変更されています。PCやスマホ、タブレットなど様々なデバイスに幅広く対応していることが特徴です。

Ruby

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

Ruby on Rails

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

Redmine

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

0グッド

0クリップ

投稿2020/06/06 10:02

前提・実現したいこと

Windows10上にbitnamiを使わずにRedmineをインストールしたいです。

ここを参考にインストールを進めています。

発生している問題・エラーメッセージ

「eventmachineというgemを一度アンインストールして、再インストール」まで行った後に、秘密鍵を生成するコマンドが異常終了します。

Z:\redmine-4.0.7>bundle exec rake generate_secret_token Z:\redmine-4.0.7>

試したこと

  • ruby環境の再インストール
  • bundler でのインストール先を vendor/bundle にしてみた

補足情報(FW/ツールのバージョンなど)

rubyinstaller-devkit-2.4.10-1-x64.exe
redmine-4.0.7.zip

インストールの作業ログは以下の通りです。

Z:\redmine-4.0.7>gem install bundler Fetching: bundler-2.1.4.gem (100%) Successfully installed bundler-2.1.4 Parsing documentation for bundler-2.1.4 Installing ri documentation for bundler-2.1.4 Done installing documentation for bundler after 29 seconds 1 gem installed Z:\redmine-4.0.7>bundle install --without development test rmagick [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 without 'development test rmagick'`, and stop using this flag Fetching gem metadata from https://rubygems.org/............. Fetching gem metadata from https://rubygems.org/. Resolving dependencies..... Fetching rake 13.0.1 Installing rake 13.0.1 Fetching concurrent-ruby 1.1.6 Installing concurrent-ruby 1.1.6 Fetching i18n 0.7.0 Installing i18n 0.7.0 Fetching minitest 5.14.1 Installing minitest 5.14.1 Fetching thread_safe 0.3.6 Installing thread_safe 0.3.6 Fetching tzinfo 1.2.7 Installing tzinfo 1.2.7 Fetching activesupport 5.2.4.2 Installing activesupport 5.2.4.2 Fetching builder 3.2.4 Installing builder 3.2.4 Fetching erubi 1.9.0 Installing erubi 1.9.0 Fetching mini_portile2 2.4.0 Installing mini_portile2 2.4.0 Fetching nokogiri 1.10.9 (x64-mingw32) Installing nokogiri 1.10.9 (x64-mingw32) Fetching rails-dom-testing 2.0.3 Installing rails-dom-testing 2.0.3 Fetching crass 1.0.6 Installing crass 1.0.6 Fetching loofah 2.5.0 Installing loofah 2.5.0 Fetching rails-html-sanitizer 1.3.0 Installing rails-html-sanitizer 1.3.0 Fetching actionview 5.2.4.2 Installing actionview 5.2.4.2 Fetching rack 2.2.2 Installing rack 2.2.2 Fetching rack-test 1.1.0 Installing rack-test 1.1.0 Fetching actionpack 5.2.4.2 Installing actionpack 5.2.4.2 Fetching nio4r 2.5.2 Installing nio4r 2.5.2 with native extensions Fetching websocket-extensions 0.1.5 Installing websocket-extensions 0.1.5 Fetching websocket-driver 0.7.2 Installing websocket-driver 0.7.2 with native extensions Fetching actioncable 5.2.4.2 Installing actioncable 5.2.4.2 Fetching globalid 0.4.2 Installing globalid 0.4.2 Fetching activejob 5.2.4.2 Installing activejob 5.2.4.2 Fetching mini_mime 1.0.2 Installing mini_mime 1.0.2 Fetching mail 2.7.1 Installing mail 2.7.1 Fetching actionmailer 5.2.4.2 Installing actionmailer 5.2.4.2 Fetching method_source 1.0.0 Installing method_source 1.0.0 Fetching thor 1.0.1 Installing thor 1.0.1 Fetching railties 5.2.4.2 Installing railties 5.2.4.2 Fetching actionpack-xml_parser 2.0.1 Installing actionpack-xml_parser 2.0.1 Fetching activemodel 5.2.4.2 Installing activemodel 5.2.4.2 Fetching arel 9.0.0 Installing arel 9.0.0 Fetching activerecord 5.2.4.2 Installing activerecord 5.2.4.2 Fetching mimemagic 0.3.5 Installing mimemagic 0.3.5 Fetching marcel 0.3.3 Installing marcel 0.3.3 Fetching activestorage 5.2.4.2 Installing activestorage 5.2.4.2 Fetching public_suffix 4.0.5 Installing public_suffix 4.0.5 Fetching addressable 2.7.0 Installing addressable 2.7.0 Using bundler 2.1.4 Fetching css_parser 1.7.1 Installing css_parser 1.7.1 Fetching csv 3.0.9 Installing csv 3.0.9 Fetching daemons 1.3.1 Installing daemons 1.3.1 Fetching eventmachine 1.2.7 (x64-mingw32) Installing eventmachine 1.2.7 (x64-mingw32) Fetching htmlentities 4.3.4 Installing htmlentities 4.3.4 Fetching net-ldap 0.16.2 Installing net-ldap 0.16.2 Fetching ruby-openid 2.9.2 Installing ruby-openid 2.9.2 Fetching rack-openid 1.4.2 Installing rack-openid 1.4.2 Fetching sprockets 3.7.2 Installing sprockets 3.7.2 Fetching sprockets-rails 3.2.1 Installing sprockets-rails 3.2.1 Fetching rails 5.2.4.2 Installing rails 5.2.4.2 Fetching rbpdf-font 1.19.1 Installing rbpdf-font 1.19.1 Fetching rbpdf 1.19.8 Installing rbpdf 1.19.8 Fetching redcarpet 3.4.0 Installing redcarpet 3.4.0 with native extensions Fetching request_store 1.0.5 Installing request_store 1.0.5 Fetching roadie 3.5.1 Installing roadie 3.5.1 Fetching roadie-rails 1.3.0 Installing roadie-rails 1.3.0 Fetching rouge 3.3.0 Installing rouge 3.3.0 Fetching sqlite3 1.3.13 (x64-mingw32) Installing sqlite3 1.3.13 (x64-mingw32) Fetching thin 1.7.2 Installing thin 1.7.2 with native extensions Fetching thin_service 0.0.7 Installing thin_service 0.0.7 Fetching tzinfo-data 1.2020.1 Installing tzinfo-data 1.2020.1 Bundle complete! 30 Gemfile dependencies, 63 gems now installed. Gems in the groups development, test and rmagick were not installed. Use `bundle info [gemname]` to see where a bundled gem is installed. Post-install message from nokogiri: Nokogiri is built with the packaged libraries: libxml2-2.9.10, libxslt-1.1.34, zlib-1.2.11, libiconv-1.15. Z:\redmine-4.0.7>bundle exec rake generate_secret_token Unable to load the EventMachine C extension; To use the pure-ruby reactor, require 'em/pure_ruby' rake aborted! LoadError: cannot load such file -- 2.4/rubyeventmachine Z:/redmine-4.0.7/config/application.rb:5:in `<top (required)>' Z:/redmine-4.0.7/Rakefile:5:in `require' Z:/redmine-4.0.7/Rakefile:5:in `<top (required)>' (See full trace by running task with --trace) Z:\redmine-4.0.7>gem uninstall eventmachine You have requested to uninstall the gem: eventmachine-1.2.7-x64-mingw32 thin-1.7.2 depends on eventmachine (>= 1.0.4, ~> 1.0) websocket-driver-0.7.2 depends on eventmachine (>= 0, development) If you remove this gem, these dependencies will not be met. Continue with Uninstall? [yN] y Successfully uninstalled eventmachine-1.2.7-x64-mingw32 Z:\redmine-4.0.7>gem install eventmachine --platform ruby Fetching: eventmachine-1.2.7.gem (100%) Temporarily enhancing PATH for MSYS/MINGW... Building native extensions. This could take a while... Successfully installed eventmachine-1.2.7 Parsing documentation for eventmachine-1.2.7 Installing ri documentation for eventmachine-1.2.7 Done installing documentation for eventmachine after 9 seconds 1 gem installed Z:\redmine-4.0.7>bundle exec rake generate_secret_token Z:\redmine-4.0.7>

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

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

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

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

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

guest

回答2

0

ベストアンサー

正常に終了しているように見えます。手元で試しましたが、 generate_secret_token は特に何もメッセージを表示しませんでした。

config/initializers/secret_token.rb というファイルができていれば正常です。

投稿2020/06/08 09:53

g_maeda

総合スコア55

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

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

Pinsir

2020/06/10 08:28

すいません。自分の勘違いでした。 できていました。
guest

0

「密鍵を生成するコマンドが異常終了」とのことですが、その判断は何を持って?
bundle exec rake generate_secret_tokenはやったことが無いのですがその終わり方は unix ですと「何事もなく無事終わった」という所。
秘密鍵がじつはできているということはありませんか?

投稿2020/06/07 02:41

winterboum

総合スコア23284

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

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

Pinsir

2020/06/07 03:13

秘密鍵の生成中には「●●を行っている」などのメッセージが流れます。 確かにUnix系のコマンドであれば正常終了しているようにj見えますが、 Ruby on Rails のソフトウェアはメッセージを色々出します。
winterboum

2020/06/07 03:19

なるほど。 -t しても何もでませんか?
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.50%

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

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

質問する

関連した質問