【问题标题】:Ruby ridk install command throws errors on window 7Ruby ridk 安装命令在窗口 7 上抛出错误
【发布时间】:2023-01-30 03:46:05
【问题描述】:

在 Windows 7 上成功安装最新版本的 Ruby(版本 3.2.0)后,即 rubyinstaller-devkit-3.2.0-1-x64.exe)。当我在 Windows 上安装 Ruby 后按照要求运行命令 ridk install 以安装下面以逗号分隔的选项 1 和 3 时,它抛出错误如下:

C:\Users\FRED> ridk install
 _____       _           _____           _        _ _         ___
|  __ \     | |         |_   _|         | |      | | |       |__ \
| |__) |   _| |__  _   _  | |  _ __  ___| |_ __ _| | | ___ _ __ ) |
|  _  / | | | '_ \| | | | | | | '_ \/ __| __/ _` | | |/ _ \ '__/ /
| | \ \ |_| | |_) | |_| |_| |_| | | \__ \ || (_| | | |  __/ | / /_
|_|  \_\__,_|_.__/ \__, |_____|_| |_|___/\__\__,_|_|_|\___|_||____|
                    __/ |           _
                   |___/          _|_ _  __   | | o __  _| _     _
                                   | (_) |    |^| | | |(_|(_)\^/_>

   1 - MSYS2 base installation
   2 - MSYS2 system update (optional)
   3 - MSYS2 and MINGW development toolchain

Which components shall be installed? If unsure press ENTER [1,3] 1,3

> sh -lc true
The MSYS2 project is planning to drop active support of Windows 7
and 8.0 sometime during 2022. For more information visit
https://www.msys2.org/docs/windows_support
MSYS2 seems to be properly installed

Install MSYS2 and MINGW development toolchain ...

> pacman -S --needed --noconfirm autoconf autogen automake-wrapper diffutils fil
e gawk grep libtool m4 make patch sed texinfo texinfo-tex wget mingw-w64-ucrt-x8
6_64-binutils mingw-w64-ucrt-x86_64-crt-git mingw-w64-ucrt-x86_64-gcc mingw-w64-
ucrt-x86_64-gcc-libs mingw-w64-ucrt-x86_64-headers-git mingw-w64-ucrt-x86_64-lib
mangle-git mingw-w64-ucrt-x86_64-libwinpthread-git mingw-w64-ucrt-x86_64-make mi
ngw-w64-ucrt-x86_64-tools-git mingw-w64-ucrt-x86_64-winpthreads-git pkgconf ming
w-w64-ucrt-x86_64-pkgconf
error: mingw32: signature from "Christoph Reiter (MSYS2 development key) <reiter
.christoph@gmail.com>" is unknown trust
      1 [main] pacman 2406 dofork: child 2407 - died waiting for dll loading, er
rno 11
error: GPGME error: System error w/o errno
error: mingw64: missing required signature
error: ucrt64: missing required signature
error: clang32: signature from "Christoph Reiter (MSYS2 development key) <reiter
.christoph@gmail.com>" is unknown trust
error: clang64: signature from "Christoph Reiter (MSYS2 development key) <reiter
.christoph@gmail.com>" is unknown trust
error: msys: signature from "Christoph Reiter (MSYS2 development key) <reiter.ch
ristoph@gmail.com>" is unknown trust
error: database 'mingw32' is not valid (invalid or corrupted database (PGP signa
ture))
error: database 'mingw64' is not valid (invalid or corrupted database (PGP signa
ture))
error: database 'ucrt64' is not valid (invalid or corrupted database (PGP signat
ure))
error: database 'clang32' is not valid (invalid or corrupted database (PGP signa
ture))
error: database 'clang64' is not valid (invalid or corrupted database (PGP signa
ture))
error: database 'msys' is not valid (invalid or corrupted database (PGP signatur
e))
Install MSYS2 and MINGW development toolchain failed
Installation failed: pacman failed

   1 - MSYS2 base installation
   2 - MSYS2 system update (optional)
   3 - MSYS2 and MINGW development toolchain

Which components shall be installed? If unsure press ENTER []

【问题讨论】:

    标签: ruby-on-rails ruby


    【解决方案1】:

    看起来你的签名已经过时了。我相信以下可能会解决您的问题:

    1. 转到 ruby​​ 安装的 mysys 文件夹 C:Ruby32-x64msys64
    2. 双击msys2.exe
    3. 粘贴 (Shift+Insert) 以下命令:
      rm -r /etc/pacman.d/gnupg/
      pacman-key --init
      pacman-key --populate msys2
      
      1. 关闭 msys2
      2. 打开 Powershell
      ridk install
      
      1. 安装、更新和添加开发工具链

      资料来源:

    【讨论】:

      猜你喜欢
      • 2020-11-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-10-09
      • 2013-02-25
      • 2015-07-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多