前提・実現したいこと
こちらの記事を参考にRubyの環境構築を試みています。
問題としては、サイトにて行われている工程{半角の「3」を入力}の後に以下の様なエラーが出てしまっています。
ただ、ruby -vを実行すると、
Microsoft Windows [Version 10.0.18362.657]
(c) 2019 Microsoft Corporation. All rights reserved.
C:\Users\名前>ruby -v
ruby 2.5.1p57 (2018-03-29 revision 63029) [x64-mingw32]
C:\Users\名前>
と「正常にRubyがインストール出来ている」はずの表示は出ます。また工程③の「Rubyを実行してみよう」もサイトと同じように難なく「Hello, world!」と「3」を表示させることが出来ました。
ですので、そのままこちらの記事を参考にRuby on railsの環境構築を試みたのですが④の工程でエラーが出てしまい前に進めません。
まずは放置したRubyでのエラー解消が先だと考えています。ご回答頂けますと幸いです。
試したこと
こちらの質問を参考にコマンドを打ち込んでみたのですが、
Microsoft Windows [Version 10.0.18362.657]
(c) 2019 Microsoft Corporation. All rights reserved.
C:\Users\名前>ridk install 1 2 3
| __ \ | | |_ | | | | | | |_
| |) | | |_ _ _ | | _ __ | | __ | | | ___ _ __ ) |
| _ / | | | ' | | | | | | | ' / __| / _` | | |/ _ \ '/ /
| | \ \ || | |) | || || || | | __ \ || (| | | | / | / /
|| __,|./ _, |_____|| ||/__,||_|_|||__|
/ | _
|/ | _ __ | | o __ | _ _
| () | |^| | | |(|()^/_>
sh -lc true
MSYS2 seems to be properly installed
Remove catgets to avoid conflicts while update ...
pacman -Rdd catgets libcatgets --noconfirm
エラー: mingw32: "Alexey Pavlov (Alexpux) alexpux@gmail.com" の署名は信頼されていません
エラー: mingw64: "Alexey Pavlov (Alexpux) alexpux@gmail.com" の署名は信頼されていません
エラー: msys: "Alexey Pavlov (Alexpux) alexpux@gmail.com" の署名は信頼されていません
エラー: 対象が見つかりませんでした: catgets
エラー: 対象が見つかりませんでした: libcatgets
MSYS2 system update (optional) part 1 ...
pacman -Syu --needed --noconfirm
エラー: mingw32: "Alexey Pavlov (Alexpux) alexpux@gmail.com" の署名は信頼されていません
エラー: mingw64: "Alexey Pavlov (Alexpux) alexpux@gmail.com" の署名は信頼されていません
エラー: msys: "Alexey Pavlov (Alexpux) alexpux@gmail.com" の署名は信頼されていません
:: パッケージデータベースの同期中...
MSYS2 system update (optional) failed
Traceback (most recent call last):
16: from C:/Ruby25-x64/bin/ridk.cmd:32:in <main>' 15: from C:/Ruby25-x64/lib/ruby/site_ruby/2.5.0/ruby_installer/runtime/ridk.rb:14:in
run!'
14: from C:/Ruby25-x64/lib/ruby/site_ruby/2.5.0/ruby_installer/runtime/ridk.rb:99:in install' 13: from C:/Ruby25-x64/lib/ruby/site_ruby/2.5.0/ruby_installer/runtime/components_installer.rb:34:in
install'
12: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/application.rb:110:in top_level' 11: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/application.rb:125:in
run_with_threads'
10: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/application.rb:116:in block in top_level' 9: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/application.rb:116:in
each'
8: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/application.rb:116:in block (2 levels) in top_level' 7: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/application.rb:160:in
invoke_task'
6: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/task.rb:181:in invoke' 5: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/task.rb:188:in
invoke_with_call_chain'
4: from C:/Ruby25-x64/lib/ruby/2.5.0/monitor.rb:226:in mon_synchronize' 3: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/task.rb:195:in
block in invoke_with_call_chain'
2: from C:/Ruby25-x64/lib/ruby/site_ruby/2.5.0/ruby_installer/runtime/components/02_pacman_update.rb:14:in execute' 1: from C:/Ruby25-x64/lib/ruby/site_ruby/2.5.0/ruby_installer/runtime/msys2_installation.rb:194:in
with_msys_apps_enabled'
C:/Ruby25-x64/lib/ruby/site_ruby/2.5.0/ruby_installer/runtime/components/02_pacman_update.rb:23:in `block in execute': pacman failed (RuntimeError)
C:\Users\名前>ridk exec pacman -S mingw-w64-x86_64-dlfcn --noconfirm
エラー: mingw32: "Alexey Pavlov (Alexpux) alexpux@gmail.com" の署名は信頼されていません
エラー: mingw64: "Alexey Pavlov (Alexpux) alexpux@gmail.com" の署名は信頼されていません
エラー: msys: "Alexey Pavlov (Alexpux) alexpux@gmail.com" の署名は信頼されていません
エラー: データベース 'mingw32' は無効です (無効または破損したデータベース (PGP 鍵))
エラー: データベース 'mingw64' は無効です (無効または破損したデータベース (PGP 鍵))
エラー: データベース 'msys' は無効です (無効または破損したデータベース (PGP 鍵))
C:\Users\名前>
となり解決には至ることができていません。